很简单,只要给print()加个end为空字符串''的参数就好了。 print("...", end='')
''
print("...", end='')
实例演示
print("a", end='') print("b", end='') print("c", end='')
运行效果图: