#step1:创建列表order_list #step2:for遍历列表,使用if找到适合的列表元素将其输出 #step3:每遍历一个列表元素,不同种类的price加对应的单价 #step4:直接递加不同种类的价格 order_list=['rice', 'beef', 'chips', 'pizza', 'pizza', 'yogurt', 'tomato', 'rice', 'beef'] price=0 for i in order_list: &nbs...