摘要:
经典循环案例: name = '世界杯在召唤我'# for i in range(3): #取 012 for x in name: print(' ') if x == '在': break #跳出了最内层while循环,但仍然继续执行外层循环 print(x) print("\n——————我是 阅读全文
摘要:
字符串与 列表间的转换 如何利用字符串 'Life is short ,I use python'输出 :'python use I, short is Life' s = 'Life is short ,I use python's ss = s.split() # 利用空格分割,返回列表 ss 阅读全文