标签:learn for ace iba class pre 嵌套 inf mon
dic = { ‘name‘:[‘alex‘,‘wusir‘,‘taibai‘], ‘py9‘:{ ‘time‘:‘1213‘, ‘learn_money‘:19800, ‘addr‘:‘CBD‘, }, ‘age‘:21 } # dic[‘age‘] = 56 # print(dic[‘name‘]) # dic[‘name‘].append(‘ritian‘) # l = [1,2,‘wusir‘] # l[2] = l[2].upper() # dic[‘name‘][1] = dic[‘name‘][1].upper() # print(dic) #female : 6 # dic[‘py9‘][‘female‘] = 6 # print(dic) # fhdklah123rfdj12fdjsl3 ‘ 123 12 13‘ info = input(‘>>>‘).strip() for i in info: if i.isalpha(): info = info.replace(i," ") l = info.split() print(len(l))
标签:learn for ace iba class pre 嵌套 inf mon
原文地址:https://www.cnblogs.com/hopelv/p/10073974.html