
python
文章平均质量分 60
batjhwxf
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
GetChart.py
import os from AnalyzeLog import trans_2_amc_json, trans_2_pl_json, trans_2_calc_pl_json from GenerateChart import generate_ulThroughput import json data_line_num = 22 origin_log = 'a.txt' amc_js...原创 2019-11-07 20:49:12 · 192 阅读 · 0 评论 -
GetChart.py
import os from AnalyzeLog import trans_2_amc_json, trans_2_pl_json, trans_2_calc_pl_json from GenerateChart import generate_ulThroughput import json data_line_num = 22 origin_log = 'a.txt' amc_js...原创 2019-11-07 20:32:39 · 254 阅读 · 0 评论 -
GenerateChart.py
import os from LogUtil import get_json_log import json def generate_ulThroughput(calc_pl_json): data = get_json_log(calc_pl_json) max_pl = data[str(len(data)-1)]['ulPL'] ulThroughput = da...原创 2019-11-07 16:08:33 · 247 阅读 · 0 评论 -
char.json
{ "title" : { "text": "THROUGHPUT", "subtext": "TEST" }, "tooltip" : { "trigger": "axis" }, "legend": { "data":["Standard","Current"] }, "toolbox": { "show" : "true...原创 2019-11-07 11:32:22 · 293 阅读 · 0 评论 -
bookmark
flaskhttp://docs.jinkan.org/docs/flask/tutorial/setup.html原创 2019-06-13 14:28:27 · 800 阅读 · 0 评论 -
用python开发移动App(android、iOS)后台简述
来源:http://www.zhihu.com/collection/38815292?page=11、如果使用python语言,需要学习哪些知识? python作为一门简单明了的语言,非常容易上手,语言层面不会太复杂,稍微有点难度的顶多就是装饰器、元类和少量函数式编程内容。要说学习的话,我觉得更多是一些编程方面通用的东西,比如:数据结构和算法、设计模式、操作系统、计算机网络之类的2、选择什...转载 2019-04-10 03:32:41 · 13730 阅读 · 0 评论 -
python tcp黏包和struct模块解决方法,大文件传输方法及MD5校验
https://www.cnblogs.com/zaizai1573/p/10230973.html 一、TCP协议 粘包现象 和解决方案 黏包现象 让我们基于tcp先制作一个远程执行命令的程序(命令ls -l ; lllllll ; pwd) 执行远程命令的模块 需要用到模块subprocess subprocess通过子进程来执行外部指令,并通过input/output/error管道...转载 2019-04-10 14:07:22 · 583 阅读 · 0 评论 -
mysql
#coding=utf-8try: import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET import sys import MySQLdbtry: tree = ET.parse("key.xml") #打开xml文档 #root = ET.fr...转载 2018-03-12 23:35:03 · 135 阅读 · 0 评论 -
python ftp
#!/usr/bin/python # -*- coding: UTF-8 -*- import sys import ftplib import ConfigParser import datetime import os import MySQLdb #localhost #10.4.211.158 def connect_mysql(): db_config = dict(h...原创 2018-04-03 11:23:24 · 224 阅读 · 0 评论 -
create table
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Time : 2017/11/22 23:04 # @Author : lijunjiang # @File : Creater-tables.py import MySQLdb # sql 语句 #创建student表 Student = ''' create table Stud...转载 2018-04-03 12:22:19 · 1523 阅读 · 0 评论 -
修改文件名, 累加1
#!/usr/bin/python #-*- config: UTF-8 -*- import os import re import time import datetime def change_file_name(dirName): allList = os.listdir(dirName) list = [] for x in allList: ...原创 2018-08-07 20:58:13 · 493 阅读 · 0 评论 -
选择系统盘
#!/usr/bin/python #-*- config: UTF-8 -*- import os import re import time import datetime import sys def write_data(file, data): with open(file, mode='w+') as f: f.write(data) f.cl...原创 2018-08-16 02:50:00 · 343 阅读 · 0 评论 -
xml
#coding=utf-8try: import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET import sys try: tree = ET.parse("country.xml") #打开xml文档 #root = ET.fromstring...转载 2018-03-12 22:25:49 · 133 阅读 · 0 评论