Commit e85a368c by BellCodeEditor

auto save

parent 9ed85b40
Showing with 21 additions and 8 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~ def drawFlower():
dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} 3 num_spaces = random.randint(8, 80)
j=input("你要买什么?") 4 print(' ' * num_spaces, end='')
if j in dict: 5 for i in range(47):
prink('巧克力'(dict[j])) 6 if i in FLOWERS:
7 nextLine()
8 print(' ' * num_spaces, end='')
9 elif i in [2, 8, 12, 18]:
10 print(MAGENTA + '{', end='')
11 elif i in [3, 9, 13, 19]:
12 print(MAGENTA + '_', end='')
13 elif i in [4, 10, 14, 20]:
14 print(MAGENTA + '}', end='')
15 elif i in [27, 35, 43]:
16 print(GREEN + '|', end='')
17 elif i in [34, 44]:
18 print(GREEN + '~', end='')
19 elif i == 11:
20 print(YELLOW + 'o', end='')
21 else:
22 print(' ', end='')
else:
prink()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment