07 2021 档案
摘要:linux命令-scp,sftp远程上传下载文件 1.本地下载远程的文件 scp user@ip:/源文件绝对地址 目的文件 #scp root@ip:/home/log.log ./ 2.scp带密码下载远程文件 #sudo apt-get install sshpass #sshpass -p
阅读全文
摘要: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
阅读全文
摘要:参考博客 https://blog.csdn.net/qq_35876972/article/details/104826650 class StudentInfo(models.Model): name = models.CharField(max_length=20, verbose_name=
阅读全文
摘要:1 docker ps 2 导出容器 docker export 15ce4c229d71> scaner.tar # scaner.tar 自定义名称 3 导入其他服务器images docker import scaner.tar scaner #scaner可自己定义 4 docker ima
阅读全文
摘要:参考连接 https://blog.csdn.net/jx950915/article/details/90691870 安装模块 1、pyinstaller这里建议最好使用命令安装,手动下载安装有很多其他的模块不存在,我就一开始是手动安装,安装一次缺一个模块,然后补一个,然后又少一个,命令行安装就
阅读全文
摘要:官网链接 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])
阅读全文
摘要:1 // 定义一个数组等同的对象var array = ["Code", true ,"新元素1" ,"新元素2" ,-3] array.splice(2, 0, "item1", "item2"); #2 document.writeln( array ); // Code,true,item1,
阅读全文
摘要:a标签默认刷新本页面为最新页面 只需要给a标签加一个属性: target="_blank" 就可以在跳转的时候打开新的页面 < a href="index.html" target="_blank" >跳转打开一个新的页面(不刷新本页)</a>
阅读全文
摘要:不知道你是否发现,身边聊异步的人越来越多了,比如:FastAPI、Tornado、Sanic、Django 3、aiohttp等。 听说异步如何如何牛逼?性能如何吊炸天。。。。但他到底是咋回事呢? 本节要跟大家一起聊聊关于asyncio异步的那些事! 参照 博客 https://www.cnblog
阅读全文
摘要:Linux的压缩/解压缩文件处理 zip & unzip Linux的压缩/解压缩命令详解及实例 压缩服务器上当前目录的内容为xxx.zip文件 zip -r xxx.zip ./* 解压zip文件到当前目录 unzip filename.zip 另:有些服务器没有安装zip包执行不了zip命令,但
阅读全文
摘要: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
阅读全文