Python3 print ()不换行输出
python
import random # 导入random
for i in range(10):
print(random.randint(1,999), end=",")
#random.randint(1,999)随机返回1-999间任意一个整数,包括1和999
#print()添加end="" 自定义参数,实现不换行输出效果.end的默认值参数为换行"\n",即end="\n"