2018年9月19日

supervisor linux下进程管理工具

摘要: 示例如下: [program:amax_iiot_p1] directory = /home/iiot/ command = python3 mul_camera.py autostart = true startsecs = 5 autorestart = true startretries = 阅读全文

posted @ 2018-09-19 14:12 工大只有一个阿锤 阅读(75) 评论(0) 推荐(0) 编辑

2018年9月18日

注意python函数参数的可变变量的传递

摘要: 1 def function(p): 2 p.append(4) 3 return 4 5 a = [1,2,3] 6 function(a) 7 8 print(a) --> [1,2,3,4] python传递参数的时候 , 传递的参数的引用(内部形参是实参的别名,即"p"是"a"的别名) 阅读全文

posted @ 2018-09-18 16:12 工大只有一个阿锤 阅读(129) 评论(0) 推荐(0) 编辑

2018年9月17日

Python远程部署利器Fabric详解

摘要: 安装坑: pip install fabric 之后,使用 from fabric.api import local 一直提示 找不到 api 正确安装: pip install fabric3 Fabric是一个Python的库,它提供了丰富的同SSH交互的接口,可以用来在本地或远程机器上自动化、 阅读全文

posted @ 2018-09-17 17:35 工大只有一个阿锤 阅读(257) 评论(0) 推荐(0) 编辑

2018年9月13日

chrom 扩展程序安装

摘要: 1. 在地址栏输入: chrom://extensions 2. 下载好的 文件拖入 jsonview 阅读全文

posted @ 2018-09-13 22:53 工大只有一个阿锤 阅读(481) 评论(0) 推荐(0) 编辑

supervisor

摘要: https://www.cnblogs.com/xueweihan/p/6195824.html https://www.cnblogs.com/xueweihan/p/6195824.html 阅读全文

posted @ 2018-09-13 17:12 工大只有一个阿锤 阅读(97) 评论(0) 推荐(0) 编辑

python进度条

摘要: import time from math import sqrt PW = 521025 def is_prime(n): for i in range(3, int(sqrt(n))+2, 2): if n % i == 0: return False return True #进度条 clas 阅读全文

posted @ 2018-09-13 09:11 工大只有一个阿锤 阅读(177) 评论(0) 推荐(0) 编辑

2018年9月12日

os sys区别

摘要: os 提供了一种方便的使用操作系统函数的方法。 sys 可供访问由解释器使用或维护的变量和与解释器进行交互的函数。 优秀文章: https://www.cnblogs.com/big devil/p/7625910.html 阅读全文

posted @ 2018-09-12 17:33 工大只有一个阿锤 阅读(126) 评论(0) 推荐(0) 编辑

2018年9月11日

知乎上关于网站 权限系统的回答

摘要: 原文地址:https://www.zhihu.com/question/20313385 作者:Vance 链接:https://www.zhihu.com/question/20313385/answer/118095995 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注 阅读全文

posted @ 2018-09-11 16:36 工大只有一个阿锤 阅读(594) 评论(0) 推荐(0) 编辑

2018年9月10日

xadmin 集成ueditor

摘要: GitHub搜索 djangoueditor 查看使用教程 下载djangoueditor或者 直接使用源码包 配置ueditor url: url('^ueditor/', include('DjangoUeditor.urls')), 写xadmin插件: xadmin/plugins 目录下添 阅读全文

posted @ 2018-09-10 21:22 工大只有一个阿锤 阅读(336) 评论(0) 推荐(0) 编辑

2018年9月9日

单独使用django model

摘要: _ _ encoding:utf 8 _ _ __author__ = 'sz.yu' 此脚本 独立使用django model import os import sys 获取相关路径 pwd = os.path.dirname(os.path.realpath(__file__)) parent_ 阅读全文

posted @ 2018-09-09 23:54 工大只有一个阿锤 阅读(564) 评论(0) 推荐(0) 编辑

导航