python-%操作符
1.打印字符串
print("His name is %s"%("Aviad"))
2.打印整数
print("He is %d years old"%(25))
3.打印浮点数
print("His height is %f m"%(1.83))
4.指定小数点位数,打印浮点数
print("His height is %.2f m"%(1.83))
5.指定占位符宽度(左对齐)
print("Name:%-10s Age:%-5d Height:%-5.2f"%("Aviad",25,1.83))