开发者

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")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜