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