- 博客(4)
- 收藏
- 关注
原创 python基础--模块
python基础--模块什么是模块导入方法自定义module和_init_.py常用模块-datetime常用模块--json 什么是模块 导入方法 自定义module和_init_.py 常用模块-datetime 。。。。太多不放了 常用模块–json ...
2020-08-14 10:35:11
163
原创 python基础--函数
python基础--函数lambda匿名函数迭代器reversed()/iter()/next()/enumerate()map()/filter()/reduce()generator lambda匿名函数 迭代器 不要被名字吓到,这个迭代器其实非常好理解,5分钟看一遍ppt各种方法基本差不多 reversed()/iter()/next()/enumerate() map()/filter()/reduce() generator generator优点: 省内存 (因为它next一步
2020-08-13 21:42:21
472
原创 python基础--字符串和正则表达式
python基础--正则表达式字符串1-表示2-字符串遍历3-切片4-字符串格式化format方法zip5-字符串方法strip()count()capitalize()和replace()find()index()isalnum()isalpha()str.isdigit() 、str.decimal()、str.isnumeric()str.isspace()/str.islower()/str.isupper()其他方法 字符串 1-表示 #几种表示方法 'abc' "abc" '''abc''' "
2020-08-13 19:24:18
237
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人