Python练习题(day4)

简介:
startstop1whilestartstopstartstart172nextnextnextnext2'404'deffileimporttimewithopenfile'rb'as02whileTrueifelse0.05deflinesforinlines'utf-8'ifinforin'access.log''404'end''withopen'access.log''a'encoding'utf-8'as'出错啦404\n'34'python'1names'egon''alex_sb''wupeiqi''yuanhao'names'egon''alex_sb''wupeiqi''yuanhao'namesfornameinnamesnames2names'egon''alex_sb''wupeiqi''yuanhao'names'egon''alex_sb''wupeiqi''yuanhao'namesnamefornameinnamesif'sb'names3maxwithopen'a.txt''r'encoding'utf-8'asmaxlenforin4sum0sumwithopen'a.txt''r'encoding'utf-8'assumlenforinsumlenforin05withopen'a.txt'aslenforinsum62000033000101000000102001'name''xxx''price'333'count'310000withopen'a.txt'encoding'utf-8'asforincostsumfloatintcountforcountincostwithopen'a.txt'encoding'utf-8'as'name'0'price'float1'count'int2forinwithopen'a.txt'encoding'utf-8'as'name'0'price'float1'count'int2foriniffloat1100001183000383000028200002810000'name''egon''sex''male''age'18'salary'30002131415160112347.71234567891011121314151withopen'db.txt'asforin'name'name'sex''age''salary'fornamein2maxkey'salary'3minkey'age'4map'name''name''sex''sex''age''age''salary''salary'list5'name''a'list6def01whileend' '10defstopifstopreturnend' 'stop01107123456789101112131415defgetforiniftypeislistgetelseget,如需转载请自行联系原作者
相关文章
|
存储 Python
Python经典练习题(四)
Python经典练习题(四)
Python经典练习题(四)
|
存储 Web App开发 开发者
Python 自动化指南(繁琐工作自动化)第二版:附录 C:练习题的答案
Python 自动化指南(繁琐工作自动化)第二版:附录 C:练习题的答案
158 0
|
存储 Python
Python经典练习题(三)
Python经典练习题(三)
|
存储 索引 Python
【python】——组合数据类型(单选练习题)
【python】——组合数据类型(单选练习题)
|
算法 Python
python文件读取操作练习题(统计单词)
python文件读取操作练习题(统计单词)
255 0
|
机器学习/深度学习 Python
Python 数学练习题(二)
Python 数学练习题
559 1

推荐镜像

更多