
Python模块
_夜半钟声到客船
永远保持对技术的热情
展开
-
【学习】:Python合并多个Excel到一个Excel
最近尝试了一下基于Python脚本来合并Excel的表格原创 2023-12-13 09:52:00 · 120 阅读 · 0 评论 -
Windows如何在Python环境下连接Oracle数据库
1.python连接oracle 数据库需要配置正确类库建议pyt原创 2014-05-27 12:51:43 · 1277 阅读 · 0 评论 -
Python编写脚本在windows和linux上面出现的错误
config.read('config.ini') File "D:\Python27\lib\ConfigParser.py", line 305, in read self._read(fp, filename) File "D:\Python27\lib\ConfigParser.py", line 512, in _read raise MissingSec原创 2014-05-30 15:32:21 · 2651 阅读 · 0 评论 -
python请使用迭代查找一个list中最小和最大值,并返回一个tuple
# -*- coding: utf-8 -*-#迭代找出最大最小值import randomdef findMinAndMax(L): if L == []: return (None,None) else: min = L[0] max = L[0] for i in L: if i ...原创 2018-08-16 15:31:42 · 5497 阅读 · 3 评论 -
python 字母转小写的列表生成式 包含if else以及字符串判断
#!/usr/bin/env python3# -*- coding: utf-8 -*-L1 = ['Hello', 'World', 18, 'Apple', None]L2 = []for v in L1: if(isinstance(v,str)): v = v.lower() L2.append(v) else: ...原创 2018-08-16 15:58:36 · 876 阅读 · 0 评论