发布时间:2019-08-31 10:12:23编辑:auto阅读(3215)
age = 4
name = ‘hmm’
print(‘my name is ‘,name,’age is ‘,age) #第一种方法。
my name is hmm age is 4
print(‘my name is %s, age is %s’ %(name,age))#第一种方法。
my name is hmm, age is 4
print(‘my name is {0} age is {1}’.format(name,age))#第一种方法。
my name is hmm age is 4
上一篇: Python Cookie 读取和保存
下一篇: 如何在python中比较微秒时间差(mi
47874
46440
37327
34769
29340
26004
24954
19973
19573
18069
5815°
6443°
5955°
5983°
7088°
5932°
5973°
6466°
6430°
7813°