Set environment and prepare d = u2.connect()Traceback (most recent call last):
exec(ccode, globals)
File "", line 1, in
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 47, in write
self.__convertor.write(text)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 177, in write
self.write_and_convert(text)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 205, in write_and_convert
self.write_plain_text(text, cursor, len(text))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 211, in write_plain_text
self.wrapped.flush()
^^^^^^^^^^^^^^^^^^
AttributeError: 'MockStdout' object has no attribute 'flush'[Finished 0.002s]
Set environment and prepare d = u2.connect()Traceback (most recent call last): exec(ccode, globals) File "", line 1, in
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 47, in write
self.__convertor.write(text)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 177, in write
self.write_and_convert(text)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 205, in write_and_convert
self.write_plain_text(text, cursor, len(text))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\colorama\ansitowin32.py", line 211, in write_plain_text
self.wrapped.flush()
^^^^^^^^^^^^^^^^^^
AttributeError: 'MockStdout' object has no attribute 'flush'[Finished 0.002s]
有什么解决办法吗?