摘要: len is a build-in function that returns the numbers of characters in a string: Since we started counting at zero, the last index should be 5... 阅读全文
posted @ 2014-06-18 19:18 平静缓和用胸音说爱 阅读(243) 评论(0) 推荐(0) 编辑
摘要: A string is a sequence of characters. You can access the characters one at a time with the bracket operator. The second statement selects ch... 阅读全文
posted @ 2014-06-18 19:02 平静缓和用胸音说爱 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Loops are often used in programs that compute numerical results by starting with an approximate answer and iteratively improving it.For example, one w... 阅读全文
posted @ 2014-06-18 15:24 平静缓和用胸音说爱 阅读(538) 评论(0) 推荐(0) 编辑