摘要:#python2 import sys,platform from serial import Serial import time,re if str(platform.python_version().split('.')(0)) == '3': print "Error:can not sup
阅读全文
摘要:公司要测试boottime,就自己写了个脚本,虽然写的有点丑,但是基本功能是能实现了。 import os,sys if os.path.isdir('C:\Python36\lib\site-packages'): sys.path.append('C:\Python36\lib\site-pac
阅读全文
摘要:转 https://www.cnblogs.com/moyand/p/9047978.html
阅读全文
摘要:转https://www.cnblogs.com/killianxu/p/9746545.html 在编写python程序的过程中,中英文混用经常会出现编码问题。围绕此问题,本文首先介绍编码的含义及常用编码,随后列举几个python经常遇到的编码异常及解决方法,接着列举笔者在实践中遇到的异常出现的情
阅读全文
摘要:转:https://blog.csdn.net/ass_assinator/article/details/77140584 网卡的链路聚合就是将多块网卡连接起来,当一块网卡损坏,网络依旧可以正常运行,可以有效的防止因为网卡损坏带来的损失,同时也可以提高网络访问速度。 网卡的链路聚合一般常用的有"b
阅读全文
摘要:import visaimport os,csv,sys,timefrom getopt import getopt def Useage(): print sys.argv[0].split('/')[-1],'-m mode -t seconds' print "mode: [voltage|c
阅读全文