随笔分类 - Python
摘要:NOTE: 可变数据类型:列表list,字典dict 不可变数据类型:num,string,tuple(元祖) lambda匿名函数的应用。 li=[1,2,3,4] 1,map(lambda x,y:x+y,li) map遍历列表所有元素,生成一个新的列表,与原有列表呈一一映射关系。 详见lamb
阅读全文
摘要:方法二: 结果输出: D:\ProgramDate\anaconda\python.exe D:/BFFILE/untitled/file_字符串.py[333, 46, 12, 8, 5, 4, 2, 1, 1, 0] Process finished with exit code 0
阅读全文
浙公网安备 33010602011771号