![](https://img-blog.csdnimg.cn/20200813144552203.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
python基础知识
python基础知识汇总
devvk
这个作者很懒,什么都没留下…
展开
-
python基础--模块
python基础--模块什么是模块导入方法自定义module和_init_.py常用模块-datetime常用模块--json什么是模块导入方法自定义module和_init_.py常用模块-datetime。。。。太多不放了常用模块–json...原创 2020-08-14 10:35:11 · 138 阅读 · 0 评论 -
python基础--函数
python基础--函数lambda匿名函数迭代器reversed()/iter()/next()/enumerate()map()/filter()/reduce()generatorlambda匿名函数迭代器不要被名字吓到,这个迭代器其实非常好理解,5分钟看一遍ppt各种方法基本差不多reversed()/iter()/next()/enumerate()map()/filter()/reduce()generatorgenerator优点:省内存(因为它next一步原创 2020-08-13 21:42:21 · 389 阅读 · 0 评论 -
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 · 196 阅读 · 1 评论 -
python基础--数据类型
python的基本使用-1考核要求: 在线学习时长+平时的多次小练习拍照上传原创 2020-08-13 14:34:34 · 109 阅读 · 0 评论