Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python while循环(范围)_Python_For Loop - Fatal编程技术网

Python while循环(范围)

Python while循环(范围),python,for-loop,Python,For Loop,我不知道第一次打5的时候出了什么问题,它应该停止了 就像第二个一样 谢谢您的帮助。您需要使用将返回的str转换为int a = int(input("Enter number: ")) 请不要添加图像。。把你的问题抄在这里。。

我不知道第一次打5的时候出了什么问题,它应该停止了 就像第二个一样


谢谢您的帮助。

您需要使用将返回的
str
转换为
int

a = int(input("Enter number: "))

请不要添加图像。。把你的问题抄在这里。。