赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。