有占位符还有f’{}'格式输出
#年纪
age = 18
name = "qw"
weight = 45.4
id = 1203
print("年龄:%d"%age)
print("名字:%s"%name)
print("体重:%.1f"%weight)
print("学号:%d"%id)
print("学号:%03d\t体重:%.2f\n"%(id,weight))
print(f'学号{id} 体重{weight}')#f'{}'格式化字符串
print(f'年龄{age + 1} 名字{name}')