题解 | #菜品的价格#
菜品的价格
https://www.nowcoder.com/practice/86843c3ba8f240cda3bb2b177f896735
str1 = input() if str1 == "pizza": print(10) elif str1 == "rice": print(2) elif str1 == "yogurt": print(5) else: print(8)
菜品的价格
https://www.nowcoder.com/practice/86843c3ba8f240cda3bb2b177f896735
str1 = input() if str1 == "pizza": print(10) elif str1 == "rice": print(2) elif str1 == "yogurt": print(5) else: print(8)
相关推荐