例:

name = input('Please input your name: ')

age  =  int(input('Please input your age: '))

salary = float(input('Please input your salary: '))

print('name: ', name)

print('age: ', age)

#格式化salary,小数点后保留一位

print('salary: ', format(salary,'0.1f'))