![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
main_xtgjfge
略懂,略懂。。。
展开
-
python map和reduce的用法
>>> L1 = ['a', 'b', 'c'] >>> L2 = [1, 2, 3] >>> zip(L1, L2) [('a', 1), ('b', 2), ('c', 3)] >>> map(L1, L2) Traceback (most recent call last): File "", line 1, in ? TypeError: 'list' object is not ca转载 2012-09-28 12:52:14 · 753 阅读 · 0 评论 -
python 读写 .ini 配置文件
# coding=UTF-8 import ConfigParser class MyClass(object): ''' 取配置文件 ''' def __init__(self): self.path = "../config/config.ini" try : self.cf =原创 2012-09-29 13:51:02 · 685 阅读 · 0 评论