|
发表于 2018-2-26 23:03:37
|
显示全部楼层
本帖最后由 gordon18014 于 2018-2-26 23:07 编辑
我借問問題
我解答時也出現錯誤
但不知自己錯哪
我的代碼:
- >>> bingo = 888
- answer = int(input('請輸入數字:‘))
- while True :
- if answer == bingo:
- break
- answer = int(input('請重新輸入:'))
- print ('答對了')
复制代码
但是不行 求解
會顯示SyntaxError: multiple statements found while compiling a single statement
- >>> bingo = 888
- answer = int(input('請輸入數字:‘))
- while True :
- if answer == bingo:
- break
- answer = int(input('請重新輸入:'))
- print ('答對了')
-
- SyntaxError: multiple statements found while compiling a single statement
- >>>
复制代码 |
|