#Python的输出函数可以这样一次输出多个参数
m=6
print("1 "*3,m,sep="")
#另外,end默认换行"\n",sep默认一个空格" ",自己可以改
print("3","4",end=" ",sep="*")
另外Python的input只返回字符串,print输出时会把数据转为字符串输出
n=input() #输入3
print(type(n))#输出
3
<class 'str'>
深度解读 · 专业分析
#Python的输出函数可以这样一次输出多个参数
m=6
print("1 "*3,m,sep="")
#另外,end默认换行"\n",sep默认一个空格" ",自己可以改
print("3","4",end=" ",sep="*")
另外Python的input只返回字符串,print输出时会把数据转为字符串输出
n=input() #输入3
print(type(n))#输出
3
<class 'str'>