1.
1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 4 'one 5 6 7 #报错 8 9 File "C:\Users\shuxiu\Desktop\test.py", line 4 10 'one 11 ^ 12 SyntaxError: EOL while scanning string literal
EOL是行尾(end of line),错误原因:在发现字符串结尾之前先找到了行的结尾。
Powered by: 博客园 Copyright © 2024 陈东陈 Powered by .NET 9.0 on Kubernetes