康康
康康
我看看
老子一定要学会
试试输入代码模块
本帖最后由 GUHAN 于 2020-10-10 22:04 编辑
试一试第二种
试一试
来一段代码{:10_256:}
生意兴隆 发表于 2020-9-28 09:07
我这运行的是什么错误呀
#coding=gbk
print("-------------我爱编程:---------------")
temp = input("猜一下我心中的数字")
if guess == 8:# 你没有定义guess的值
print("恭喜你猜对了")
print("真不错")
else:
print("你太笨了,猜错了")
print("游戏结束")
我这运行的是什么错误呀======================== RESTART: D:/pythonzuoye/365.py ========================
-------------我爱编程---------------
猜一下我心中的数字8
Traceback (most recent call last):
File "D:/pythonzuoye/365.py", line 4, in <module>
if guess==8:
NameError: name 'guess' is not defined#coding=gbk
print("-------------我爱编程:---------------")
temp = input("猜一下我心中的数字")
if guess == 8:
print("恭喜你猜对了")
print("真不错")
else:
print("你太笨了,猜错了")
print("游戏结束")
xhxfft 发表于 2020-9-24 19:55
试试第二种方法
嗯,第二种方法也可以,会了
试试第二种方法
Hello,world!
Hello,world!
中国人标准到此一游
pp
???
[?????????????????????????????????????????????????]
就试试,不沉迷[\code]
[]??[]