随笔 - 745, 文章 - 1, 评论 - 180, 阅读 - 155万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  python

python
摘要:# python doc https://www.cnblogs.com/june-L/category/1586901.html 一、configparser介绍configparser模块主要用于读取配置文件,导入方法:import configparser 二、基本操作 2.1、获取节点sec 阅读全文

posted @ 2020-04-26 23:08 moss_tan_jun 阅读(135) 评论(0) 推荐(0) 编辑

摘要:# -*- coding: utf-8 -*-from xml.dom.minidom import parsedef readXML(): domTree = parse("./defalt.xml") rootNode = domTree.documentElement print(rootNo 阅读全文

posted @ 2020-04-05 13:27 moss_tan_jun 阅读(154) 评论(0) 推荐(0) 编辑

摘要:# -*- coding: utf-8 -*-from xml.dom.minidom import parsedef writexml(): dom = parse("server.xml") root = dom.documentElement systemlist = root.getElem 阅读全文

posted @ 2020-04-05 13:24 moss_tan_jun 阅读(171) 评论(0) 推荐(0) 编辑

摘要:https://blog.csdn.net/weixin_42547344/article/details/81097633 阅读全文

posted @ 2020-04-04 22:53 moss_tan_jun 阅读(291) 评论(0) 推荐(0) 编辑

摘要:https://blog.csdn.net/kongsuhongbaby/article/details/84869838 https://blog.csdn.net/snow_maple521/article/details/92794341?depth_1-utm_source=distribu 阅读全文

posted @ 2020-04-02 22:46 moss_tan_jun 阅读(446) 评论(0) 推荐(0) 编辑

摘要:https://www.cnblogs.com/pupilheart/p/9734124.html https://www.cnblogs.com/pupilheart/p/9084127.html 3.破解补丁激活 优点:到期时间为2099年,基本为永久啦 缺点:相对服务器激活麻烦些,但是一共只需 阅读全文

posted @ 2019-01-29 23:26 moss_tan_jun 阅读(3825) 评论(0) 推荐(0) 编辑

摘要:https://www.cnblogs.com/technologylife/p/6242115.html 阅读全文

posted @ 2018-07-04 00:03 moss_tan_jun 阅读(156) 评论(0) 推荐(0) 编辑

摘要:http://blog.51cto.com/lizhenliang/category16.html 阅读全文

posted @ 2018-05-06 22:47 moss_tan_jun 阅读(182) 评论(0) 推荐(0) 编辑

摘要:http://www.cnblogs.com/wupeiqi/articles/4963027.html 阅读全文

posted @ 2018-01-10 23:04 moss_tan_jun 阅读(149) 评论(0) 推荐(0) 编辑

摘要:单线程脚本 导入文件的行数 # wc -l /data/logs/testlog/20120219/testlog1/* 1510503 total 多线程脚本 结果 ('starting at:', 'Tue Mar 27 14:32:05 2012')Readfile Start at, Tue 阅读全文

posted @ 2018-01-10 22:50 moss_tan_jun 阅读(501) 评论(0) 推荐(0) 编辑

摘要:import sys 2 import time 3 import fcntl 4 5 class FLOCK(object): 6 7 def __init__(self, name): 8 self.fobj = open(name, 'w') 9 self.fd = self.fobj.fil 阅读全文

posted @ 2018-01-08 22:28 moss_tan_jun 阅读(204) 评论(0) 推荐(0) 编辑

摘要:https://www.cnblogs.com/xinysu/archive/2017/05/26/6908722.html import pymysqlfrom pymysql.cursors import DictCursorimport reimport osimport sysimport 阅读全文

posted @ 2017-12-07 22:51 moss_tan_jun 阅读(275) 评论(0) 推荐(0) 编辑

摘要:因为数据库增删改突然暴增,需要查询是那些表的操作特别频繁,写了一个用来分析bin-log的小工具,找出增删改查的表,并按照操作次数降序排列,以下是代码: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 阅读全文

posted @ 2017-12-07 22:49 moss_tan_jun 阅读(264) 评论(0) 推荐(0) 编辑

摘要:#!/usr/bin/env python#_*_coding:utf-8_*_import reimport timeimport jsonimport MySQLdbimport contextlibhosts = {0:{"host":"192.168.1.140","port":3306," 阅读全文

posted @ 2017-12-03 22:40 moss_tan_jun 阅读(487) 评论(0) 推荐(0) 编辑

摘要:#!/usr/bin/env python import MySQLdbimport contextlib @contextlib.contextmanagerdef mysql(Host,Port,User,Password,Database): conn = MySQLdb.connect(ho 阅读全文

posted @ 2017-11-22 23:08 moss_tan_jun 阅读(166) 评论(0) 推荐(0) 编辑

摘要:http://lizhenliang.blog.51cto.com/7876557/1874283 http://blog.itpub.net/22664653/list/1/?cid=86471 阅读全文

posted @ 2017-11-19 22:47 moss_tan_jun 阅读(210) 评论(0) 推荐(0) 编辑

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