2020年1月4日

day15-Python运维开发基础(json序列化模块、random / time / zipfile / OS模块函数)

摘要: 1. json序列化模块 # ### json """ 所有编程语言都能够识别的数据格式叫做json,是字符串 json: 将数据类型序列化成字符串 pickle:将数据类型序列化成字节流 json能够转换的数据类型: int float bool str list tuple dict None 阅读全文

posted @ 2020-01-04 22:19 tengq 阅读(213) 评论(0) 推荐(0)

day14-Python运维开发基础(内置函数、pickle序列化模块、math数学模块)

摘要: 1. 内置函数 # ### 内置函数 # abs 绝对值函数 res = abs(-10) print(res) # round 四舍五入 (n.5 n为偶数则舍去 n.5 n为奇数,则进一!) 奇进偶不进 res = round(13.56) res = round(4.5) res = roun 阅读全文

posted @ 2020-01-04 21:34 tengq 阅读(220) 评论(0) 推荐(0)

导航