上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: from app01 import models from rest_framework import exceptions from rest_framework.authentication import BaseAuthentication # 用drf的认证,写一个类 class Login 阅读全文
posted @ 2020-08-14 22:52 xuqidong 阅读(135) 评论(0) 推荐(0) 编辑
摘要: l=[1,[2,[3,[4,[5,[6,[7,[8,[9,[10,[11,]]]]]]]]]]] def search(l): for item in l: if type(item) is not list: # 不是列表直接打印 print(item) else: # 判断是列表则继续循环,判断 阅读全文
posted @ 2020-08-05 23:55 xuqidong 阅读(133) 评论(0) 推荐(0) 编辑
摘要: yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpmhttp://npm.taobao.org/mirrors/chromedriver/ 阅读全文
posted @ 2020-07-30 00:17 xuqidong 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 昨日回顾: -HyperlinkedIdentityField(用来生成url),传三个参数 -实例化序列化类的时候,BookSerializer(ret, many=True, context={'request': request}) -序列化组件的数据校验 -类比forms组件 -局部(val 阅读全文
posted @ 2020-07-28 23:58 xuqidong 阅读(105) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>音频</title> </head> <body> <audio src="media/juhua.mp3" autoplay controls loop preload="aut 阅读全文
posted @ 2020-07-27 23:42 xuqidong 阅读(87) 评论(0) 推荐(0) 编辑
摘要: re.findall('\D?(\-?\d+\.?\d*)','1-12*(60+(-40.35/5)-(-4*3))') import re def dealwith(express): if '+-' in express:express = express.replace('+-','-') 阅读全文
posted @ 2020-07-27 23:23 xuqidong 阅读(89) 评论(0) 推荐(0) 编辑
摘要: def get_tencent_data(): url_other = 'https://view.inews.qq.com/g2/getOnsInfo?name=disease_other' headers = { "User-Agent": "Mozilla/5.0 (Windows NT 6. 阅读全文
posted @ 2020-07-15 23:43 xuqidong 阅读(673) 评论(0) 推荐(0) 编辑
摘要: free -h|awk 'NR==2' 396 free -h|awk 'NR==3' 397 free -h|awk 'NR==2{print $NF}' 398 free -h|awk 'NR==2{print $NF,$2}' 399 free -h|awk 'NR==2{print $NF/ 阅读全文
posted @ 2020-07-04 19:26 xuqidong 阅读(205) 评论(0) 推荐(0) 编辑
摘要: ## 一.环境搭建 #### 1.安装node - 去[官网](https://nodejs.org/zh-cn/)下载node安装包 - 傻瓜式安装 - 万一安装后终端没有node环境,要进行node环境变量的配置(C:\Program Files\nodejs\) - 可以通过node提供的np 阅读全文
posted @ 2020-06-29 23:52 xuqidong 阅读(126) 评论(0) 推荐(0) 编辑
摘要: cpu:top、htop 内存:free -h 磁盘:df -h、iotop 网络:iftop 负载:w、uptime 监控:10分钟负载 15分钟负载 < cpu内核数 正常 万能命令: glances 阅读全文
posted @ 2020-06-29 21:46 xuqidong 阅读(161) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页