深海201808312133318
深海201808312133318
全部文章
分类
归档
标签
去牛客网
登录
/
注册
深海201808312133318的博客
全部文章
(共9篇)
题解 | #幸运数字的大小#
hahaha,我太菜了吧 a = int(input()) b = int(input()) c = int(input()) lst = [a,b,c] print(min(a,b,c)) print(sorted...
Python3
2022-07-16
0
276
题解 | #函数求差#
我的解法 def cal(a,b): c=a-b return c x = int(input()) y&n...
Python3
2022-07-15
0
283
题解 | #梦想的大学#
survey_dict = dict() while True: print('If you have the chance, which university&...
Python3
2022-07-14
0
204
题解 | #游乐园的门票#
while True: print("Please tell me your height!\nEnter 'quit' to end the prog...
Python3
2022-07-14
0
183
题解 | #取号#
学艺不精,前来献丑,请广大网友指正【总感觉最后一行continue好像有点多余呢,因为第一行的True代表了它永远不会在while的时候判断为False跳出循环】 while True: print("Welcome! Ho...
Python3
2022-07-11
0
196
题解 | #自动售卖饮料机#
print('What kind of drink would you like?') kind_of_drink = input() if kind_of_drink == 'cola':...
Python3
2022-07-10
0
189
题解 | #首都#
野路子,不知道这个解法对不对,sorted()也可以对items()得到的key做升序【另,写的时候还不知道可以这样用cities_dict[i]['Capital'] ,多谢第一位题解大佬教会了我】 cities_dict = {'Beijing': {'Capi...
Python3
2022-07-10
0
239
题解 | #朋友们的喜好#
# 定义列表 name = ['Niumei', 'YOLO', 'Niu Ke Le', 'Mona'] food = ['pizza', 'fish', 'pota...
Python3
2022-07-09
0
210
题解 | #数到20#
# 使用for in 循环,range不含右边的数,range(1,21)含义为1到20 for i in range(1,21): print(i) ''' 使用while循环, i+=1的含义为 i=i+1: i=...
Python3
2022-07-09
0
169