bool类型转换,str索引和切片.
摘要:
迭代s="asdzxc"n = 0for c in s: print(c) # 一题# (1)# name = " aleX leNb "# print(name.strip())# (2)# print(name.split("al"))# (3)# name = "aleX leNb"# pri 阅读全文
posted @ 2018-07-30 22:15 绿豆· 阅读(233) 评论(0) 推荐(0) 编辑