摘要: linux命令-scp,sftp远程上传下载文件 1.本地下载远程的文件 scp user@ip:/源文件绝对地址 目的文件 #scp root@ip:/home/log.log ./ 2.scp带密码下载远程文件 #sudo apt-get install sshpass #sshpass -p 阅读全文
posted @ 2021-07-26 18:36 睁yan-ii 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1283) 评论(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) 编辑