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,如需转载请自行联系原作者
相关文章
|
7月前
|
存储 Python
Python经典练习题(三)
Python经典练习题(三)
|
3月前
|
算法 Python
python文件读取操作练习题(统计单词)
python文件读取操作练习题(统计单词)
47 0
|
7月前
|
Python
Python经典练习题(二)
Python经典练习题(二)
|
7月前
|
Python
Python经典练习题(一)
Python经典练习题(一)
|
8月前
python--多态和两个练习题
python--多态和两个练习题
|
10月前
|
Python
Python|PTA练习题
Python|PTA练习题
93 0
|
10月前
|
数据安全/隐私保护 Python
Python——字符串以及分支语句练习题
Python——字符串以及分支语句练习题
|
10月前
|
知识图谱 Python
Python——变量以及基础数据类型练习题
Python——变量以及基础数据类型练习题
|
机器学习/深度学习 Python
Python 数学练习题(二)
Python 数学练习题
346 1
|
Python
Python 数学练习题(一)
Python 数学练习题
226 0