#输入username = input('my name is :') #输入字符串age = int(input('how old are you:')) #输入数字#输出print(username)#用占位符方式输出print('your name is %s'%username)print('your age is %d'%age)