s = input("输入:")
print(s)
print(type(s))
name_list = ['nick', 'egon', 'jason']
x = name_list[0]
y = name_list[1]
z = name_list[2]
print(f'x:{x}, y:{y}, z:{z}')
name = 'shuai_bi'
height = 189
weight = 130
print(f"my name is {name} ,my height is {height}, my weight is {weight} ")
print("my name is %s my weight is %d my height is %d" % (name,weight,height))
print("my name is {},my height is {},my weight is {}".format(name, height, weight))
原文:https://www.cnblogs.com/Dr-wei/p/10901699.html