格式化输出:
_name = 'G'
_age = 23
_addr = 'Bei Jing'
print("my name is %s."% _name)
print("my age is %d"% _age)
print("addr is %s"% _addr)
print("my name is %s,I'm %d,%s"%(_name,_age,_addr))
格式化输出:
_name = 'G'
_age = 23
_addr = 'Bei Jing'
print("my name is %s."% _name)
print("my age is %d"% _age)
print("addr is %s"% _addr)
print("my name is %s,I'm %d,%s"%(_name,_age,_addr))