2017年11月27日

think python 第10章 lists

摘要: 10.1列表就是序列 10.2列表是可变的 10.3遍历列表 10.4lists operations +是连接操作;*是给定次数重复列表 10.5lists slices 10.6lists methods append添加至列表尾部,extend添加一个列表至列表尾部;sort从小到大排序 10 阅读全文

posted @ 2017-11-27 22:10 土间埋 阅读(183) 评论(0) 推荐(0) 编辑

think python 第9章 case study:word play

摘要: 9.1reading word lists download words.txt以后,跟编码文件放置在同一文件夹之下。 书中的内容是: 本机(python3.63): 我们也可以使用strip剔除掉换行符 打印文本的每一个单词 9.2exercises 编写一个函数has_no_e,如果给定的单词不 阅读全文

posted @ 2017-11-27 20:17 土间埋 阅读(432) 评论(0) 推荐(0) 编辑

导航