🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> ==================== RESTART: C:/307/345678910jqka2 2个王.py =================== Traceback (most recent call last): File "C:/307/345678910jqka2 2个王.py", line 1, in <module> open('306.txt','r',encoding='UTF-8') FileNotFoundError: [Errno 2] No such file or directory: '306.txt' >>> ==================== RESTART: C:/307/345678910jqka2 2个王.py =================== Traceback (most recent call last): File "C:/307/345678910jqka2 2个王.py", line 1, in <module> open('307.txt','r',encoding='UTF-8') FileNotFoundError: [Errno 2] No such file or directory: '307.txt' >>> ==================== RESTART: C:/307/345678910jqka2 2个王.py =================== Traceback (most recent call last): File "C:/307/345678910jqka2 2个王.py", line 1, in <module> open('123456.txt','r',encoding='UTF-8') FileNotFoundError: [Errno 2] No such file or directory: '123456.txt' >>> ==================== RESTART: C:/307/345678910jqka2 2个王.py =================== Traceback (most recent call last): File "C:/307/345678910jqka2 2个王.py", line 1, in <module> open('e;\\123456.txt','r',encoding='UTF-8') FileNotFoundError: [Errno 2] No such file or directory: 'e;\\123456.txt' >>> ==================== RESTART: C:/307/345678910jqka2 2个王.py =================== Traceback (most recent call last): File "C:/307/345678910jqka2 2个王.py", line 1, in <module> open('c;\\123456.txt','r',encoding='UTF-8') FileNotFoundError: [Errno 2] No such file or directory: 'c;\\123456.txt' >>> ==================== RESTART: C:/307/345678910jqka2 2个王.py =================== Traceback (most recent call last): File "C:/307/345678910jqka2 2个王.py", line 1, in <module> open('c;\\307','r',encoding='UTF-8') FileNotFoundError: [Errno 2] No such file or directory: 'c;\\307' >>> =================================================================================================================== RESTART: C:/307/345678910jqka2 2个王.py ================================================================================================================== Traceback (most recent call last): File "C:/307/345678910jqka2 2个王.py", line 1, in <module> open('c;\\307\\123456.txt','r',encoding='UTF-8') FileNotFoundError: [Errno 2] No such file or directory: 'c;\\307\\123456.txt' >>> =================================================================================================================== RESTART: C:/307/345678910jqka2 2个王.py ================================================================================================================== Traceback (most recent call last): File "C:/307/345678910jqka2 2个王.py", line 1, in <module> open('c;\\306\\123456.txt','r',encoding='UTF-8') FileNotFoundError: [Errno 2] No such file or directory: 'c;\\306\\123456.txt' >>> =================================================================================================================== RESTART: C:/307/345678910jqka2 2个王.py ================================================================================================================== Traceback (most recent call last): File "C:/307/345678910jqka2 2个王.py", line 1, in <module> open('c;//306//123456.txt','r',encoding='UTF-8') FileNotFoundError: [Errno 2] No such file or directory: 'c;//306//123456.txt' >>> =============================================== RESTART: C:/307/345678910jqka2 2个王.py =============================================== >>> =============================================== RESTART: C:/307/345678910jqka2 2个王.py =============================================== >>> ======================================================= RESTART: C:/306/9点28.py ======================================================= >>> =============================================== RESTART: C:/307/345678910jqka2 2个王.py =============================================== >>> f=open('c:\\308\\456.txt',r,encodingUTF-8) Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> f=open('c:\\308\\456.txt',r,encodingUTF-8) NameError: name 'r' is not defined >>> f=open('c:\\308\\456.txt',r,encoding'UTF-8') SyntaxError: invalid syntax >>> f=open('c:\\308\\456.txt','r',encoding'UTF-8') SyntaxError: invalid syntax >>> f=open('c:\\308\\456.txt','r',encoding='UTF-8') >>> f.read() '123456789' >>> ```