摘要:
import requestsprint(" get请求 ")url = 'http://api.nnzhp.cn/api/user/stu_info'data = {'stu_name':'小黑'} #请求数据req = requests.get(url=url,params=data)req = 阅读全文
摘要:
print(" 内置函数:zip ")l2 = ['a','b','c','e','f','g']l3 = [1,2,3]L4=['A','B','C']L5=['牛气冲天','牛头马尾','niu']#zip:把多个list合并到一起,可以同时循环多个list,循环的次数由元素个数最少的那个lis 阅读全文
摘要:
1 def f(): 2 first = input('请输入除数:') 3 second = input('请输入被除数:') 4 try: 5 first = int(first) 6 second = int(second) 7 res = first/second 8 except ValueErr... 阅读全文
摘要:
import flask,time,json,hashlib,redisprint(" 被调函数部分 ")def my_md5(s): md = hashlib.md5() md.update( s.encode() ) return md.hexdigest()def op_redis(k,v=N 阅读全文