小编tas*_*pai的帖子

hello ="bonjour"python2.7上的语法错误

我尝试在python中启动一个基本程序,它是:

#!/usr/bin/python2.7
# -*- coding: utf-8 -*-

hello = "world"
Run Code Online (Sandbox Code Playgroud)

我收到这个错误:

File "toto.py", line 4
  hello = "world"
          ^
SyntaxError: invalid syntax
Run Code Online (Sandbox Code Playgroud)

但我确定这是好语法!那我在哪里错了?

谢谢.

python syntax syntax-error python-2.7

0
推荐指数
1
解决办法
131
查看次数

标签 统计

python ×1

python-2.7 ×1

syntax ×1

syntax-error ×1