![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
imooc 《Python入门与实战》 学习总结
imooc 《Python入门与实战》 学习总结
懒笑翻
这个作者很懒,什么都没留下…
展开
-
imooc《Python入门与实战》学习总结(八)Python中的正则表达式与Json
# encoding: utf-8 """ @author: lanxiaofang @contact: fang@lanxf.cn @software: PyCharm @file: 08_0209_regex_json.py @time: 2020/2/9 14:00 """ # 正则表达式是一个特殊的字符序列,一个字符串是否与我们所设定的字符序列相匹配 # 1、检查一串数字是否是电话号码...原创 2020-02-09 23:20:28 · 225 阅读 · 0 评论 -
imooc《Python入门与实战》学习总结(六)Python中的包、模块、函数
# encoding: utf-8 """ @author: lanxiaofang @contact: fang@lanxf.cn @software: PyCharm @file: 06_0207_package_module_function.py @time: 2020/2/7 14:36 """ # 包 模块 函数 # 高性能、封装性(可复用) # 逻辑思维能力--抽象能力 # ...原创 2020-02-07 22:23:29 · 255 阅读 · 0 评论 -
imooc《Python入门与实战》学习总结(九)Python中的枚举与闭包
# encoding: utf-8 """ @author: lanxiaofang @contact: fang@lanxf.cn @software: PyCharm @file: 09_0210_enum_advgram_usage.py @time: 2020/2/10 12:42 """ # 枚举 # from enum import Enum # class VIP(Enum): ...原创 2020-02-10 21:42:52 · 258 阅读 · 0 评论 -
imooc《Python入门与实战》学习总结(二)Python环境安装与基本数据结构
# encoding: utf-8 """ @author: lanxiaofang @contact: fang@lanxf.cn @software: PyCharm @file: 02_0203_pythonenvironmentalandbasetype.py @time: 2020/2/3 16:19 """ # 1、下载Python 3.8 ,安装时使用默认勾选的选项,有一个增...原创 2020-02-03 22:06:14 · 186 阅读 · 0 评论 -
imooc《Python入门与实战》学习总结(一)导语
# encoding: utf-8 """ @author: lanxiaofang @contact: fang@lanxf.cn @software: PyCharm @file: 01_0202_guide.py @time: 2020/2/2 16:18 """ # Python与Python 的特点 # 1、Python 是一门编程语言,只是众多编程语言中的一种 # 2、语法简...原创 2020-02-03 22:02:01 · 385 阅读 · 0 评论 -
imooc《Python入门与实战》学习总结(十一)Python中的dict代替switch、列表推导式、None的理解、__len__()与__bool__
# encoding: utf-8 """ @author: lanxiaofang @contact: fang@lanxf.cn @software: PyCharm @file: 11_0212_supp_knowledge.py @time: 2020/2/12 0:25 """ # 字典代替switch # # def isSunday(): # return 'Sunday...原创 2020-02-12 23:27:56 · 264 阅读 · 0 评论 -
imooc《Python入门与实战》学习总结(四)Python中的变量与运算符
# 变量 # 一组数据的名字 # 命名要有意义 命名可读性要强 可以用很简单简洁的英文单词来表示一个变量 name = '李白' # = 不读等于,而是赋值,把'李白'赋值给name age = 99 sex = '男' # 变量命名只能是字母、数字、下划线,手指母不能是数字 # 系统关键字(保留关键字),不能用在变量命中 if else type = 3 #...原创 2020-02-06 17:48:47 · 124 阅读 · 0 评论 -
imooc《Python入门与实战》学习总结(七)Python中的面向对象
# 面向对象 # 类是现实世界或思维世界中的实体在计算机中的反映 # 行为的主体与特征 # ① 类 class 命名规则:首字母大写,尽量不用下划线,用驼峰方式 Student, UserStudent # 类最基本的作用就是封装方法 class Student1(): name = '花无缺' age = 20 sun = 0 def do_homewo...原创 2020-02-09 00:24:23 · 226 阅读 · 0 评论 -
imooc《Python入门与实战》学习总结(十)Python中的匿名函数、三元表达式、过滤器、装饰器
# encoding: utf-8 """ @author: lanxiaofang @contact: fang@lanxf.cn @software: PyCharm @file: 10_0211_function.py @time: 2020/2/11 11:24 """ """ # 匿名函数 lambda parameter_list: expression (lambda 表达式...原创 2020-02-11 17:12:49 · 301 阅读 · 0 评论 -
imooc《Python入门与实战》学习总结(三)Python基本数据结构
# encoding: utf-8 """ @author: lanxiaofang @contact: fang@lanxf.cn @software: PyCharm @file: 03_0204_basedatatype.py @time: 2020/2/4 17:33 """ # 定义列表 # lista = [1, 2, 3, 4, 5] # listb = ["Hello wo...原创 2020-02-05 00:18:02 · 215 阅读 · 1 评论 -
imooc《Python入门与实战》学习总结(五)Python中的分支、循环、条件
# encoding: utf-8 """ @author: lanxiaofang @contact: fang@lanxf.cn @software: PyCharm @file: 05_0206_branch_loop_condition.py @time: 2020/2/6 17:54 """ # 分支、循环、条件 # 条件控制 if else 分支 # mood = Tr...原创 2020-02-07 18:02:40 · 386 阅读 · 0 评论