摘要: li=[[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5]]s=0for i in range(0,5): for j in range(0,5): print li[i][j], print ""print "+++++++++... 阅读全文
posted @ 2015-11-02 15:08 big_brother 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 字符串函数:chr() 数字转ASCII chr(96)="a"ord() ASCII转数字 ord("a")=96isspace() 判断是否为空格 s="abcde" s.isspace() 返回true or falsefind() 返回字符串的索引,查不到返回-1. s="abcde" s.... 阅读全文
posted @ 2015-11-02 14:56 big_brother 阅读(164) 评论(0) 推荐(0) 编辑