
错误记录
文章平均质量分 68
WQPM
菜鸟自学中
展开
-
ValueError: too many values to unpack问题原因记录
练习题:梦想的度假胜地 :编写一个程序,调查用户梦想的度假胜地。使用类似于“If you could visit one place in the world, where would you go?”的提示,并编写一个打印调查 结果的代码块。错误代码:question='If you could visit one place in the world, where would you go: ...原创 2018-02-24 21:48:23 · 30932 阅读 · 0 评论 -
TypeError: unsupported operand type(s) for +: 'int' and ‘str’问题原因记录
错误类型:TypeError: unsupported operand type(s) for +: 'int' and ‘str’错误代码:age=input('please put in your age: ‘) age=int(age) if age >18: ...原创 2018-02-22 13:49:16 · 18890 阅读 · 0 评论 -
在input( )和raw_put( )踩过的坑
错误代码:tips='请输入披萨配料: 'tips+='\n(若输入quit可退出)'active=Truewhile active==True: message=input(tips) if message=='quit': active=False else: print(message)用户输入值chicken后运行结果:请输入披萨配料: (若输入quit可推出)chi...原创 2018-02-22 13:34:33 · 1859 阅读 · 0 评论