摘要:
字符串常用操作 移除空白 分割 长度 索引 切片 class str(basestring): """ str(object='') -> string Return a nice string representation of the object. If the argument is a s 阅读全文
摘要:
#求100内奇数和while\for..in循环 sum = 0 i = 1 while i <= 100: sum += i i += 2 print(sum) sum = 0 for i in range(1,101,2): sum += i print(sum) #求100内偶数while\for..in循环 sum = 0 i = 0 while i <=... 阅读全文