我目前正在學習 Python,所以我不知道發生了什么。import randomx=10while x>0: print(x+'='+(random.randint(1,100))) x-=1當我運行程序時Traceback (most recent call last): File "C:\Users\black\.spyder-py3\temp.py", line 12, in <module> print(x+'='+(random.randint(1,100)))TypeError: unsupported operand type(s) for +: 'int' and 'str'
添加回答
舉報
0/150
提交
取消