
Python
忆网
不个性,无签名
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python xlwt 操作xls 并加样式
操作xls 需要导入三方库from xlwt import *单元格内容格式化font.bold = True # May be: True, Falsefont.italic = True # May be: True, Falsefont.struck_out = True # May be: True, Falsefont.underline = xlwt.Fo...原创 2018-06-08 16:23:38 · 7283 阅读 · 0 评论 -
python 之 platform 获取当前系统平台信息
根据实际开过过程中,需要在不通操作系统平台调试代码,则需要用到platform模块来操作1. 安装模块 pip install platfrom2.导入模块 import platfrom3.具体使用示例#!/usr/bin/env python# -*- coding: UTF-8 -*-"""__author__='hzh'__time__= 2018/06/29"""im...原创 2018-06-29 15:31:38 · 8213 阅读 · 0 评论 -
python 操作 redis,redis集群
python 操作redis 需要导入redis模块import redis """ 连接redis ConnectionPool 方式连接 """ def connRedis(self): pool=redis.ConnectionPool(host='172.16.1.2',password='',db=2, port=6379) #按具体情况填写...原创 2018-07-05 17:33:54 · 8818 阅读 · 1 评论