Created
June 7, 2017 03:26
-
-
Save yejingx/afb234b1461cad0f80ee973bfcc232a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import random | |
menu = ''' | |
菜心(18元) | |
茄子(18元) | |
芋艿(18元) | |
红烧豆腐(18元) | |
干锅土豆片(22元) | |
干锅花菜(25元) | |
干锅金针菇(28元) | |
西红柿炒蛋(18元) | |
水蒸蛋(18元) | |
土豆丝(18元) | |
小白菜(18元) | |
外婆菜(28元) | |
肉圆豆腐(28元,一般) | |
黄瓜肉片(22元) | |
莴笋干(38元,一般) | |
香肠(38元) | |
小炒肉(28元) | |
红烧肥肠(48元) | |
清水鱼(48元/斤) | |
红烧鲫鱼 | |
小杂鱼 | |
生炒鸡 | |
白切鸡(28元) | |
红烧野兔(108元) | |
番茄蛋汤 | |
''' | |
n = raw_input("人数: ") | |
n = max(int(n)-2, 2) | |
for x in random.sample(filter(None, menu.split('\n')), n): | |
print x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment