当前位置:首页>正文

python程序每行只能写一条语句

2023-04-28 00:52:56 互联网 未知

python程序每行只能写一条语句?

对于Python2 在print语句的最后加一个逗号,就能不打印出换行符 print hello,print world对于Python3 可以设置end参数为空字符串 print(hello, end=)

随便看看