《Python编程从入门到实践》7.9练习题
sandwich_orders = [‘火腿三明治’,‘鸡蛋三明治’,‘青菜三明治’,
‘pastrami’,‘pastrami’,‘pastrami’]
finished_sandwiches = []
while sandwich_orders:
sandwich = sandwich_orders.pop()
print ('您好,您点的 ' + sandwich.title()+' 做好了...
原创
2019-03-23 10:43:34 ·
190 阅读 ·
0 评论