上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: from PIL import Imagefrom MyQR import myqrimport oslist = [ "TE1111000004046", "TE1111000074046"]def qr_code(str_list): curpath = os.path.dirname(os.p 阅读全文
posted @ 2020-03-30 11:01 千年妖狐 阅读(368) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8from socket import *HOST = '127.0.0.1'PORT = 8088BUFSIZ =1024ADDR = (HOST,PORT)tcpCliSock = socket(AF_INET,SOCK_STREAM)tcpCliSock.connec 阅读全文
posted @ 2020-03-30 10:59 千年妖狐 阅读(184) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/expectset timeout 20set username xxxset password sxxxspawn scp /home/appxxxrovider.zip ${username}@xxx:/app/new-pkg/ expect { "(yes/no)?" { 阅读全文
posted @ 2020-03-30 10:54 千年妖狐 阅读(198) 评论(0) 推荐(0) 编辑
摘要: class readXls(): def read(self, name, sheetname): try: print('start read excel !') self.path = os.path.abspath(os.path.join(os.path.dirname(__file__), 阅读全文
posted @ 2020-03-30 10:49 千年妖狐 阅读(195) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8import osimport jpypefrom jpype import * # python,Java,win位数要相同# Java扩展包的路径,在Java的jar包中用到扩展模块,不导入此包会报错jarpath = os.path.join(os.path.abs 阅读全文
posted @ 2020-03-30 10:46 千年妖狐 阅读(220) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8from kafka import KafkaConsumerfrom kafka.structs import TopicPartitionimport timeconsumer = KafkaConsumer('test', group_id='my-group', 阅读全文
posted @ 2020-03-30 10:44 千年妖狐 阅读(678) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8import jsonfrom pykafka import KafkaClientdef readkafka(): with open('oms.json', 'r') as f: msg = f.read() # msg_d=eval(msg) d = json.lo 阅读全文
posted @ 2020-03-30 10:34 千年妖狐 阅读(170) 评论(0) 推荐(0) 编辑
摘要: import jsonfrom pykafka import KafkaClientfrom pykafka.simpleconsumer import SimpleConsumerimport timetopic = 'qq'data = { "ddgd":"dgdfg", "ddd":"fdg" 阅读全文
posted @ 2020-03-30 10:33 千年妖狐 阅读(377) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashos_check() { if [ -e /etc/redhat-release ]; then REDHAT=`cat /etc/redhat-release |cut -d' ' -f1` else DEBIAN=`cat /etc/issue |cut -d' ' -f1 阅读全文
posted @ 2020-03-30 10:27 千年妖狐 阅读(217) 评论(0) 推荐(0) 编辑
摘要: import threading, time, requests# class ThreadDemo(threading.Thread):## def run(self):# time.sleep(1)# now = time.strftime('%Y-%m-%d %H:%M:%S')# print 阅读全文
posted @ 2020-03-30 10:23 千年妖狐 阅读(119) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页