注册 登录
编程论坛 Android开发

Python if 语法

mb19881022 发布于 2012-03-25 22:44, 457 次点击
score=70
>>> if score>60
SyntaxError: invalid syntax
>>> if score>60:
    print("jige")
    else:
        
SyntaxError: unindent does not match any outer indentation level
>>> print(score)
70
>>> if score>60:
    print("jige")
    elif(score<60)
   
SyntaxError: unindent does not match any outer indentation level
>>> if score>60:
    print("jige")
    else:
        
SyntaxError: invalid syntax
>>> if score>60:
    print("jige")
    else:
        
SyntaxError: unindent does not match any outer indentation level
我照着手册上的来学习的,结果总是有错,实在弄不懂那里出错?
0 回复
1