|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
print("小小游戏“)
temp = input("不妨猜猜我想那个数字:“)
guess =int(temp)
if guess ==8:
print(“答对啦额”)
print(“没有奖励”)
else:
print(“打错了,我想的是8”)
print(“游戏结束”)
Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> print("小小游戏“)
temp = input("不妨猜猜我想那个数字:“)
guess - int(temp)
if guess ==8:
print(“答对啦额”)
print(“没有奖励”)
else:
print(“打错了,我想的是8”)
print(“游戏结束”)
SyntaxError: EOL while scanning string literal
>>>
本帖最后由 jackz007 于 2019-2-17 13:06 编辑
表达式中所使用的元素:引号、冒号、括号都必须是半角字符,楼主使用的几乎全部是全角,好好检查一下。
|
|