摘要: # -*- coding: utf-8 -*-""" File Name: test Description : Author : Administrator date: 2018/9/2 0002 """# the default max number# for i in range(1, len 阅读全文
posted @ 2018-09-08 20:59 tny_leyon 阅读(324) 评论(0) 推荐(0) 编辑
摘要: """Generating a new SSH key1:open git bash 2:Paste the text below, substituting in your GitHub email address. $ ssh-keygen -t rsa -b 4096 -C "your_ema 阅读全文
posted @ 2018-09-01 10:08 tny_leyon 阅读(178) 评论(0) 推荐(0) 编辑
摘要: # encoding:utf-8 from ftplib import FTPimport osimport sys _XFER_FILE = 'FILE'_XFER_DIR = 'DIR' class FtpClient(object): def __init__(self): self.ftp 阅读全文
posted @ 2018-08-24 17:35 tny_leyon 阅读(1576) 评论(0) 推荐(0) 编辑
摘要: # encoding:utf-8 import reimport jsonimport randomfrom esdapi.config import BASE_URLfrom requests.sessions import Session class Ad09(object): def __in 阅读全文
posted @ 2018-08-21 15:25 tny_leyon 阅读(203) 评论(0) 推荐(0) 编辑
摘要: # encoding:utf-8 import reimport jsonimport randomfrom requests.sessions import Session class Regist(object): def __init__(self): """初始化session 并设置hea 阅读全文
posted @ 2018-08-20 13:27 tny_leyon 阅读(1242) 评论(0) 推荐(0) 编辑
摘要: """centos:mysql忘记root密码解决 1.修改MySQL的登录设置: # vim /etc/my.cnf 在[mysqld]的段中加上一句:skip-grant-tables 例如: [mysqld] datadir=/var/lib/mysql socket=/var/lib/mys 阅读全文
posted @ 2018-08-14 13:44 tny_leyon 阅读(1768) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """requests.session~~~~~~~~~~~~~~~~ This module provides a Session object to manage and persist settings acrossrequests (cooki 阅读全文
posted @ 2018-08-10 13:36 tny_leyon 阅读(593) 评论(0) 推荐(0) 编辑
摘要: # encoding:utf-8 _portprog = None def split_host_port(host): """ split the host :param host: host like : xxxx.80 :return: host,port """ global _portpr 阅读全文
posted @ 2018-08-10 08:44 tny_leyon 阅读(122) 评论(0) 推荐(0) 编辑
摘要: # encoding:utf-8# baseic usage of requests.sessionsimport requestsfrom requests import sessions r = requests.Request('GET', 'http://172.21.2.3:8009/ad 阅读全文
posted @ 2018-08-10 08:43 tny_leyon 阅读(138) 评论(0) 推荐(0) 编辑
摘要: # encoding:utf-8 from collections import OrderedDictfrom collections import MutableMappingfrom threading import RLock _Null = object() def iterkeys(d, 阅读全文
posted @ 2018-08-10 08:42 tny_leyon 阅读(279) 评论(0) 推荐(0) 编辑