shell

07 2017 档案

摘要:#查看电脑的版本 C:\Users\lys>pip -V pip 8.1.1 from e:\python\python3.5\lib\site-packages (python 3.5) #安装 C:\Users\lys>pip install virtualenv #创建 C:\Users\lys>virtualenv testvir #进入 C:\Users\lys>cd testvir ... 阅读全文
posted @ 2017-07-31 16:00 devops运维 阅读(343) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python # _*_ coding:utf-8 _*_ # Author:Liuyoushui # Time = 2017/7/18 10:33 print ('\n'.join([' '.join(['%s*%s=%2s' % (y,x,x*y) for y in range(1,x+1)]) for x in range(1,10)])) print([... 阅读全文
posted @ 2017-07-18 15:07 devops运维 阅读(388) 评论(0) 推荐(0) 编辑
摘要:我在salt上编写了备份日志的脚本,在/opt/CardServer下的主程序目录只保留当天的日志,/opt/log_del目录会保存7天的日志。salt * state.sls script.log_sevenday#添加计划任务salt * cron.set_job root '00' '4' 阅读全文
posted @ 2017-07-05 15:19 devops运维 阅读(244) 评论(0) 推荐(0) 编辑

python
点击右上角即可分享
微信分享提示