摘要:
time内置模块的方法 1、time() 时间戳 time() -> floating point number 浮点数 Return the current time in seconds since the Epoch. Fractions of a second may be present 阅读全文
摘要:
1、总共有3个人看电影,有2个人看电影经常说话,我们把他们两个过滤出去 move_people=["gouguoqi","beiye_sb","xiudiannao_sb"] ret=[] for n in move_people: if n.endswith("sb"): pass else: r 阅读全文
摘要:
1、求列表的数字相加之和,还是之前的习惯,写for循环来实现 num_1=[1,2,3,4,5,6,7,8,9] a=0 for n in num_1: #a=a+n a+=n print (a) C:\python35\python3.exe D:/pyproject/day14函数/reduce 阅读全文