【python】print 格式化一起输出

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yang332233/article/details/82289105
n = 1023
my_str = "hello,world!"
print "num = %d, str = %s" %(n,my_str)

猜你喜欢

转载自blog.csdn.net/yang332233/article/details/82289105