Python 19 Programming Tutorial
2016-08-30 本文已影响0人
豆表示低调
Bucky Roberts · August 29, 2014
groceries = {'cereal', 'milk', 'starcrunch', 'beer', 'duct tape', 'lotion', 'beer'}
print(groceries)
if 'milk' in groceries:
print("You already have milk hoss!")
else:
print("Oh yea, you need milk!")