![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 59
CooooolLiu
这个作者很懒,什么都没留下…
展开
-
kubernetes client python常用api
kubernetes.client.CoreV1ApiAll URIs are relative to http://localhostMethodHTTP requestDescriptionconnect_delete_namespaced_pod_proxyDELETE /api/v1/namespaces/{namespace}/pods/{name}/proxyconnect_delete_namespaced_pod_proxy_with_pathDELET原创 2021-07-05 16:24:45 · 677 阅读 · 0 评论 -
sublime text3执行带参数的python文件
InputArgs插件了解一下 装他装他!插件都会装吧?原创 2021-03-26 17:28:12 · 470 阅读 · 0 评论 -
python 读取XML文件输出至excel
from xml.dom.minidom import parseimport xml.dom.minidom import osimport sysimport xlsxwriterdef readxml(name): rootpath = os.getcwd() path = os.path.join(rootpath,name) dom = xml.dom.minidom.parse(path) testResults = dom.documentElemen原创 2020-08-06 16:07:47 · 1092 阅读 · 0 评论 -
Python实现读取redis数据并导出至excel
import redisimport jsonimport osimport sysimport xlsxwriterclass connectRedis(): def __init__(self): self.host = 'hosthosthost' self.port = '6379' self.auth = '密码密码' self.r = redis.Redis(host=self.host, port=self.port, password=self.auth,deco原创 2020-08-06 16:03:15 · 1371 阅读 · 0 评论 -
PAT 1013 数素数 (20point(s)) 这也太难了吧!
di`import matha = input()Prime_number = []interregional = a.split(" ")def is_prime(n):if n == 1:return Falsefor i in range(2, int(math.sqrt(n))+1):if n % i == 0:return Falsereturn Truefor i in range(1,int(math.pow(2,31)-1)):if len(Prime_number.原创 2020-08-04 16:47:46 · 134 阅读 · 0 评论 -
Python实现AES加密解密--------zeropadding
import base64from Crypto.Cipher import AES# 密钥(key), 密斯偏移量(vi) CBC模式加密 def AES_Encrypt(key, data): vi = 'Cooooooooooooool' pad = lambda s: s + (16 - len(s)%16) * chr(0) data = pad(data...原创 2019-09-29 15:56:14 · 2668 阅读 · 0 评论