网络编程
位置:首页>> 网络编程>> Python编程>> python实现在IDLE中输入多行的方法

python实现在IDLE中输入多行的方法

作者:designpc的专栏  发布时间:2023-05-06 19:24:01 

标签:python,多行,输入,IDLE

在python命令行模式下,在IDLE中输入多行,例如if  else

使用tab的方式,控制缩进

在最后,连续两个回车,表示结束


>>> if state:
...  print "ok"
... else:
...  print "wrong"
...
wrong
>>>

来源:https://blog.csdn.net/designpc/article/details/75208363

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com