self-confidence,the source of all the power

导航

2012年3月19日 #

python 编码方式

摘要: VI中识别python 程序的代码:#!/usr/bin/env python# encoding=utf8 阅读全文

posted @ 2012-03-19 16:17 漩涡鸣人 阅读(349) 评论(0) 推荐(0)

python list 成员交集

摘要: b1=[1,2,3]b2=[2,3,4]正则表达式:b3 = [i for i in b1 if i in b2]自带集合函数set()b3=list(set(b1) & set(b2))列表中的列表,用到函数filter() 阅读全文

posted @ 2012-03-19 15:00 漩涡鸣人 阅读(356) 评论(0) 推荐(0)