Python Cookbook学习记录 ch1_1_2013/10/20
摘要:
1.1 每次处理一个字符a. list方法将字符串转成列表>>> thestring = 'Helloworld'>>> thelist = list(thestring)>>> print thelist['H', 'e', 'l', 'l', 'o', 'w', 'o', 'r', 'l', 'd']b.使用for循环完成字符串遍历>>> the 阅读全文
posted @ 2013-10-20 15:44 七海之风 阅读(138) 评论(0) 推荐(0)
浙公网安备 33010602011771号