python 练习题

格式化输出:%站位符,s,输出字符串,d输出数字,%%只是单纯的显示%
name = input("请输入姓名:")
age = input("请输入年龄:")
height = input("请输入身高:")
msg = "我叫:%s,今年:%s,身高:%s,学习进度:3%%"%(name,age,height)
print(msg)


原文地址:https://www.cnblogs.com/python-test001/p/11211756.html