题解 | #菜品的价格#
菜品的价格
https://www.nowcoder.com/practice/86843c3ba8f240cda3bb2b177f896735
lunch = input()
price = 0
if lunch == "pizza":
price = 10
elif lunch == "rice":
price = 2
elif lunch == "yogurt":
price = 5
else:
price = 8
print(price)
查看1道真题和解析