随笔分类 -  Python

摘要:import logging log_file = 'logs/task.log' logging.basicConfig(level=logging.INFO, format='%(message)s',datefmt='%Y-%m-%d %H:%M:%S', filename=log_file, 阅读全文

posted @ 2021-12-09 11:32 kobe 阅读(47) 评论(0) 推荐(0)

摘要:#安装pywin32pip install pywin32#安装服务> python WinPyServiceExample.py installInstalling service WinPyServiceExampleService installed#更新服务> python WinPySer 阅读全文

posted @ 2021-12-08 11:31 kobe 阅读(397) 评论(0) 推荐(0)

摘要:1.添加引用 import requests,sys,socket #获取本机IP地址def getIPList(self): ipList=[] # 下方代码为获取当前主机IPV4 和IPV6的所有IP地址(所有系统均通用) addrs = socket.getaddrinfo(socket.ge 阅读全文

posted @ 2021-09-24 16:25 kobe 阅读(1389) 评论(0) 推荐(0)

摘要:1.读取Excel表格 panda方式 ,普通的excel可行,对于有些数据复杂的,可能提取不了 import pandasexcel=pandas.read_excel('现代征信学.xlsx',index_col='列名',header=None) #header默认为0,指读取第几行,0代表第 阅读全文

posted @ 2021-08-24 22:06 kobe 阅读(3123) 评论(0) 推荐(0)

导航