摘要: # -*- coding: utf-8 -*-""" File Name: mysqlmanager Description : Author : Administrator date: 2019/8/11 0011 """import aiomysqlimport asyncioimport lo 阅读全文
posted @ 2019-08-11 16:30 tny_leyon 阅读(191) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-""" File Name: yield_from_example Description : Author : Administrator date: 2019/8/11 0011 """final_results = {}def sales_sum( 阅读全文
posted @ 2019-08-11 15:00 tny_leyon 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1 安装虚拟环境 pip install virtualenv 2 创建虚拟文件夹 mkdir .venvs 3.设置虚拟目录 virtualenv --system-site-packages .venvs/lpthw -- 创建一个虚拟化环境lpthw 4激活虚拟环境 cd D:\.venvs\ 阅读全文
posted @ 2019-07-21 21:47 tny_leyon 阅读(2341) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-""" File Name: ssh Description : Author : Administrator date: 2019/6/30 0030 """import paramikoimport uuid,socketclass SSHConne 阅读全文
posted @ 2019-06-30 11:19 tny_leyon 阅读(244) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-""" File Name: yml_test Description : Author : Administrator date: 2019/6/29 0029 """import ddt, yamlimport unittest, requestsf 阅读全文
posted @ 2019-06-30 08:10 tny_leyon 阅读(616) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 _*- """ @author:Administrator @file: excel.py Description :如果行数是1000的倍数,进行一次flush,如果行数超过65536,新开一个sheet,如果超过3个sheet,则新建一个文件@time: 2 阅读全文
posted @ 2018-11-09 11:11 tny_leyon 阅读(5573) 评论(0) 推荐(0) 编辑
摘要: #/bin/bash# the backup dateDATE=`date +%Y%m%d%H%M`#backup pathBACKUP_PATH=/home/backup/mysqldata#get all database nameSQL_STRING="SELECT SCHEMA_NAME A 阅读全文
posted @ 2018-10-30 09:50 tny_leyon 阅读(282) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 _*-"""@author:Administrator@file: yamlparser.py@time: 2018/09/07""" class A(object): """ Method resolution order是python用来解析方法调用顺序的。 阅读全文
posted @ 2018-10-24 14:40 tny_leyon 阅读(417) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 _*-""" @author:Administrator @file: new_app_publish.py @time: 2018/08/29 """ import paramikoimport sys class AppPush(object): def _ 阅读全文
posted @ 2018-09-13 14:22 tny_leyon 阅读(597) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-""" File Name: printsquare Description : Author : Administrator date: 2018/9/8 0008 """def print_square(n): """ 5(-2,-1,0,1,2)- 阅读全文
posted @ 2018-09-08 22:56 tny_leyon 阅读(397) 评论(0) 推荐(0) 编辑