摘要: 1. post请求方式编码有3种: application/x-www-form-urlencoded #最常见的post提交数据的方式,以form表单形式提交数据 application/json #以json格式提交数据 multipart/form-data #一般使用来上传文件(较少用) 2 阅读全文
posted @ 2021-02-03 16:58 香农Shannon 阅读(13486) 评论(0) 推荐(0) 编辑
摘要: 场景:取N个07:30:00-09:30:33之间的随机时间 import random st = "07:30:00" et = "09:30:33" def time2seconds(t): h,m,s = t.strip().split(":") return int(h) * 3600 + 阅读全文
posted @ 2021-02-03 16:35 香农Shannon 阅读(1607) 评论(0) 推荐(0) 编辑
摘要: 菜鸟教程:https://www.runoob.com/python/python-built-in-functions.html abs() divmod() input() open() staticmethod() all() enumerate() int() ord() str() any 阅读全文
posted @ 2021-02-03 08:25 香农Shannon 阅读(94) 评论(0) 推荐(0) 编辑