Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1627142
  • 博文数量: 126
  • 博客积分: 1541
  • 博客等级: 上尉
  • 技术积分: 1914
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-20 11:14
文章分类

全部博文(126)

文章存档

2014年(21)

2013年(42)

2012年(63)

发布时间:2013-01-08 21:24:25

In [11]: import operatorIn [13]: a=[1,2,3]In [14]: b=[4,5,6]In [15]: c=map(operator.mul,a,b)In [16]: print c[4, 10, 18]In [17]: c=map(operator.add,a,b)In [18]: print c[5, 7, 9]In [20]: c=map(operator.and_,a,b)  In [21]: print c[0, 0, 2]In [23]: c=map(operator.abs,a)In [24]: print c[1, 2, 3]&nbs......【阅读全文】

阅读(4664) | 评论(0) | 转发(0)

发布时间:2013-01-06 22:34:37

一、ConfigParser简介ConfigParser 是用来读取配置文件的包。配置文件的格式如下:中括号“[ ]”内包含的为section。section 下面为类似于key-value 的配置内容。 1: [db] 2: db_host = 127.0.0.1 3: db_port = 22 4: db_user = root 5: db_pass = rootroot 6:  7: [concurrent] 8: thread = 10 9: processor = 20中括号“[ ]”内包含的为section。紧接着section 为类......【阅读全文】

阅读(397) | 评论(0) | 转发(0)

发布时间:2013-01-06 22:33:30

python中os.path常用模块os.path.sep:路径分隔符      linux下就用这个了’/’os.path.altsep: 根目录os.path.curdir:当前目录os.path.pardir:父目录os.path.abspath(path):绝对路径os.path.join():       常用来链接路径os.path.split(path):      把path分为目录和文件两个部分,以列表返回 点击(此处)折叠或打开[GCC 4.4.5] on linux2Type "he......【阅读全文】

阅读(4149) | 评论(0) | 转发(0)

发布时间:2013-01-06 22:32:00

1) Linux中主要有哪几种内核锁?2) Linux中的用户模式和内核模式是什么含意?3) 怎样申请大块内核内存?4) 用户进程间通信主要哪几种方式?5) 通过伙伴系统申请内核内存的函数有哪些?6) 通过slab分配器申请内核内存的函数有?7) Linux的内核空间和用户空间是如何划分的(以32位系统为例)?8) vmalloc()申请的内存有什么特点?9) 用户程序使用malloc()申请到的内存空间在什么范围?10) 在支持并使能MMU的系统中,Linux内核和用户程序分别运行在物理地址模式还是虚拟地址模式?11) ARM处理器是通过几级也表进行存储空间映射的?12) Linux是通过什......【阅读全文】

阅读(718) | 评论(0) | 转发(0)

发布时间:2013-01-06 22:24:55

/home/yangfeng/RL75_ics2_master/kernel/mediatek/custom/out/e610_ics2[jmd_rda]/kernel/touchpanel/driver.c:344: error: 'MT6516_TOUCH_IRQ_LINE' undeclared (first use in this function)/home/yangfeng/RL75_ics2_master/kernel/mediatek/custom/out/e610_ics2[jmd_rda]/kernel/touchpanel/driver.c:347: error: 'TP......【阅读全文】

阅读(1927) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册