开发者

Enter compound statements interactivly

开发者 https://www.devze.com 2023-02-19 19:19 出处:网络
I am having trouble running this simple statement in the IDLE prompt. if True: print开发者_运维技巧(\"True\") # need to press ENTER twice?

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

精彩评论

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

关注公众号