摘要: s = '132a4b5c' s1 = s[0]+s[2]+s[1] print(s1)#输出123 #使用while和for循环分别打印字符串s=’asdfer’中每个元素。 s = 'asdfer' num = 0 while num < len(s): print(s[num]) num += 1 #使用while和for循环分别打印字符串s=’asdfer... 阅读全文
posted @ 2019-02-01 15:41 vellan 阅读(93) 评论(0) 推荐(0) 编辑