Discuss / Python / 求助老师和大神

求助老师和大神

Topic source

Leon.L

#1 Created at ... [Delete] [Delete and Lock User]

mac按老师的方法加了代码和命令之后,运行仍有错如下,如何解决?

./test.py: line 1: syntax error near unexpected token `('

./test.py: line 1: `Python 3.11.2 (v3.11.2:878ead1ac1, Feb  7 2023, 10:02:41) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin'

括号用了中文吧

Leon.L

#3 Created at ... [Delete] [Delete and Lock User]

并不是呀,开始以为错了,后来直接复制粘贴的还是这样

廖雪峰

#4 Created at ... [Delete] [Delete and Lock User]

不要用idle,那玩意坑人。

你打开看看你保存的py和你敲的不一样


  • 1

Reply