摘要: 第16天(内置模块) json模块:是一个序列化模块。 json:是一个‘第三方’的特殊数据格式。 可以将python数据类型 >json数据格式 >字符串 >文件中 其他语言要是想使用python的数据: 文件中 >字符串 >json数据格式 >去他语言的数据类型 注意:在json中,所有是字符串 阅读全文
posted @ 2019-11-18 19:59 迎着阳光 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 第十五天(内置函数) import datetime​# 获取当前年月日# print(datetime.date.today())​# 获取当前年月日时分秒# print(datetime.datetime.today())# l1 = datetime.datetime.today()# pri 阅读全文
posted @ 2019-11-18 19:59 迎着阳光 阅读(194) 评论(0) 推荐(0) 编辑
摘要: '''map(映射) map(函数地址,可迭代对象) >map对象 map会将可迭代对象中的每一个值进行修改,然后映射一个map对象中,可以再将map对象转化成列表、元组 ps:只能转化一次reduce:合并 reduce(函数地址,可迭代对象,初始值(默认为0))filter: 过滤 filter 阅读全文
posted @ 2019-11-18 19:56 迎着阳光 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 第十二天(都是理论) 无参装饰器模板、有参装饰器模板 # 无参装饰器模板def wrapper(func): def inner(*args, **kwargs): res = func(*args, **kwargs) # 在被装饰对象调用后添加功能 return res return inner 阅读全文
posted @ 2019-11-18 19:53 迎着阳光 阅读(169) 评论(0) 推荐(0) 编辑