Python 3.8.4 (tags/v3.8.4:dfa645a, Jul 13 2020, 16:30:28) [MSC v.1926 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> bingo=8
answer=input('How old are you,tell me:')
while True:
if answer == bingo:
break
answer = input('Sorry,Please tell me again:')
print ('You are right')
print ('You are a good boy')
SyntaxError: multiple statements found while compiling a single statement
>>>
>>> bingo=8
answer=input('How old are you,tell me:')
while True:
if answer == bingo:
break
answer = input('Sorry,Please tell me again:')
print ('You are right')
print ('You are a good boy')
SyntaxError: multiple statements found while compiling a single statement
>>> bingo='8'
answer=input('How old are you,tell me:')
while True:
if answer == bingo:
break
answer = input('Sorry,Please tell me again:')
print ('You are right')
print ('You are a good boy')
SyntaxError: multiple statements found while compiling a single statement
>>> bingo='8'
answer=input('How old are you,tell me:')
while True:
if answer == bingo:
break
answer = input('Sorry,Please tell me again:')
print ('You are right')
print ('You are a good boy')
SyntaxError: multiple statements found while compiling a single statement
>>>
python 3.8无法识别中文字符,连冒号都不行,我将所有的中文字符改成英文的,居然报错 |