Write a program that asks the user what kind of car you want to lease, and print a message: "I help you look."
car =input('先生,请问您需要租赁什么样的汽车:')print('好的,我帮您看看')
Restaurant write a program, ask how many people dining. If more than eight people to print a message stating that the table is not empty, otherwise empty tables
count =input('先生,请问您预订多少人就位:')print(type(count))# 用户输入类型为 字符串,使用 int 转换成数值ifint(count)>8:print('对不起先生,没有空的桌子')else:print('好的先生,您的桌号为12')
A user enter a number, it determines whether the number is a multiple of 10
num =input('请输入一个数字:')
num =int(num)if num%10==0:print('您输入的数字是10 的倍数')else:print('您输入的数字不是10 的倍数')
response ={}
mark =Truewhile mark:
name =input('请输入您的名字:')
age =input('请输入您的年龄:')
response[name]= age
repeat =input('是否继续添加(是或者否)')if repeat =='否':
mark =Falsefor name,age in response.items():print('姓名:'+name+'\n年龄:'+age)