上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: 1.str转dict 内置函数eval s = "{'a':1,'b':2}" sd = eval(s) print(type(sd),sd['a']) #<class 'dict'> 1 json包 import json s = '{"a":1,"b":2}' sd = json.loads(s 阅读全文
posted @ 2021-07-26 18:31 睁yan-ii 阅读(1240) 评论(0) 推荐(0) 编辑
摘要: 参考博客 https://blog.csdn.net/qq_35876972/article/details/104826650 class StudentInfo(models.Model): name = models.CharField(max_length=20, verbose_name= 阅读全文
posted @ 2021-07-26 11:25 睁yan-ii 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1 docker ps 2 导出容器 docker export 15ce4c229d71> scaner.tar # scaner.tar 自定义名称 3 导入其他服务器images docker import scaner.tar scaner #scaner可自己定义 4 docker ima 阅读全文
posted @ 2021-07-22 17:56 睁yan-ii 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 参考连接 https://blog.csdn.net/jx950915/article/details/90691870 安装模块 1、pyinstaller这里建议最好使用命令安装,手动下载安装有很多其他的模块不存在,我就一开始是手动安装,安装一次缺一个模块,然后补一个,然后又少一个,命令行安装就 阅读全文
posted @ 2021-07-21 14:35 睁yan-ii 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 官网链接 https://docs.python.org/zh-cn/3/library/re.html re 判断ip是否正确 def check_ip(ipAddr): compile_ip=re.compile('^(1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|[1-9]) 阅读全文
posted @ 2021-07-20 10:57 睁yan-ii 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1 // 定义一个数组等同的对象var array = ["Code", true ,"新元素1" ,"新元素2" ,-3] array.splice(2, 0, "item1", "item2"); #2 document.writeln( array ); // Code,true,item1, 阅读全文
posted @ 2021-07-15 16:52 睁yan-ii 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: a标签默认刷新本页面为最新页面 只需要给a标签加一个属性: target="_blank" 就可以在跳转的时候打开新的页面 < a href="index.html" target="_blank" >跳转打开一个新的页面(不刷新本页)</a> 阅读全文
posted @ 2021-07-14 14:18 睁yan-ii 阅读(4240) 评论(0) 推荐(0) 编辑
摘要: 不知道你是否发现,身边聊异步的人越来越多了,比如:FastAPI、Tornado、Sanic、Django 3、aiohttp等。 听说异步如何如何牛逼?性能如何吊炸天。。。。但他到底是咋回事呢? 本节要跟大家一起聊聊关于asyncio异步的那些事! 参照 博客 https://www.cnblog 阅读全文
posted @ 2021-07-14 14:01 睁yan-ii 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Linux的压缩/解压缩文件处理 zip & unzip Linux的压缩/解压缩命令详解及实例 压缩服务器上当前目录的内容为xxx.zip文件 zip -r xxx.zip ./* 解压zip文件到当前目录 unzip filename.zip 另:有些服务器没有安装zip包执行不了zip命令,但 阅读全文
posted @ 2021-07-13 16:19 睁yan-ii 阅读(343) 评论(0) 推荐(0) 编辑
摘要: Java版本:jdk-16.0.1_linux-x64_bin.tar linux ubuntu 18.04 # 都可以 jdk-16.0.1_linux-x64_bin.tar 下载链接:http://123.56.2.32:8888/group1/M00/00/00/rBwalWDlfXKAUp 阅读全文
posted @ 2021-07-07 18:13 睁yan-ii 阅读(163) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页