2018年7月30日

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) 编辑

python基础练习题

摘要: # by luffycity.com# 死循环# count = 1# while count <= 3:# print("喷死你..")# count = count + 1# 数数 1-100# count = 1# while count < 101:# print(count)# count 阅读全文

posted @ 2018-07-30 09:00 绿豆· 阅读(166) 评论(0) 推荐(0) 编辑

导航