摘要: # create a dictionary students = {"Alice": 24, "Bob": 26, "Clark": 23, "Dan": 28, "Emma": 31} # add entry to a dictionary students['Fred'] = 27 # alter an entry students['Alice'] = 25 # delete entry ... 阅读全文
posted @ 2017-07-14 22:34 mxyzptlk 阅读(161) 评论(0) 推荐(0)
摘要: known_user = ['Alice', 'Betty', 'Charlie', 'Daniel', 'Edison'] while True: print('Hi, I am a ridiculous user system') name = input('Please enter your name: ').strip().capitalize() if nam... 阅读全文
posted @ 2017-07-14 00:11 mxyzptlk 阅读(134) 评论(0) 推荐(0)