摘要:
Learning Log 计算列表和的两种方法 1 total=0 2 lis==[11,5,17,18,23] 3 for element in range(len(lis)): 4 total=total + lis[elemrnt] 5 print("列表和为:",total) 1 total 阅读全文
posted @ 2022-04-08 17:25
Riveru
阅读(48)
评论(0)
推荐(0)
摘要:
Read and write filesimport osos.path.join('str1','str2','str3'...) #return a string connected by '\\'os.getcwd() #return current working directoryos.c 阅读全文
posted @ 2022-04-08 16:34
Riveru
阅读(73)
评论(0)
推荐(0)
摘要:
Dictkeys() values() items() #they will return the data type of dict_keys dict_values dict_items,e.g.:for k,v in dict.items():dict.get(key,backed-value 阅读全文
posted @ 2022-04-08 16:30
Riveru
阅读(23)
评论(0)
推荐(0)
摘要:
id(object) return the memory address of the argument objecttype() view the type of objectprint(values,sep,end,file) #file is the target of the output, 阅读全文
posted @ 2022-04-08 16:26
Riveru
阅读(50)
评论(0)
推荐(0)

浙公网安备 33010602011771号