uTank-木头
每一个你不满意的现在,都有一个你没有努力的曾经。
摘要: DictionariesA dictionary is like a list, but more general. In a list, the indices have to be integers; in a dictionary they can be (almost) any type.Y... 阅读全文
posted @ 2015-03-21 11:05 uTank 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 10.1 A list is a sequenceLike a string, a list is a sequence of values. In a string, the values are characters; in a list, they can be any type. The v... 阅读全文
posted @ 2015-03-21 10:59 uTank 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 3.1 Function callsIn the context of programming, a function is a named sequence of statements that performsa computation. When you define a function, ... 阅读全文
posted @ 2015-03-21 10:50 uTank 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 8.1 A string is a sequenceA string is a sequence of characters. You can access the characters one at a time with thebracket operator:>>> fruit = 'bana... 阅读全文
posted @ 2015-03-21 10:36 uTank 阅读(314) 评论(0) 推荐(0) 编辑