标签:Python
这篇完全手打加深对于格式化输出的理解name = input("name:")
age = int(input("age:"))
occupation = input("occupation:")
salary = int(input("salary:"))
msg = ‘‘‘ %s Profile
name: %s
age: %d
occupation: %s
salary: %d
‘‘‘ % (name, name, age, occupation, salary)
print(msg)
标签:Python
原文地址:http://blog.51cto.com/9272543/2119156