Python——Utilities工具
摘要:
以下是学习goole PYTHON教程过程中的一些笔记。'#' 后面的是输出,希望你能从中获取你想要的。Closing Thoughtsa = ['aaaa', 'bb', 'cccc']a#['aaaa', 'bb', 'cccc']result = [][ len(s) for s in a ]#[4,2,5]a = [1, 2, 3, 4]a#[1, 2, 3, 4][ num*num for num in a if num > 2]#[9, 16]import osos 阅读全文
posted @ 2011-08-25 22:05 FengMichael 阅读(2592) 评论(0) 推荐(0)
浙公网安备 33010602011771号