Enter compound statements interactivly
I am having trouble running this simple statement in the IDLE prompt.
if True:
print开发者_运维技巧("True") # need to press ENTER twice?
else:
print("False") # need to press ENTER twice?
Any help is appreciated.
IDLE is automatically indenting when you press return. Press delete to remove the automatic indentation.
if True:
print("True") # press return, then backspace
else:
print("False")
精彩评论