Discuss / Python / 为什么我的会报错?string indices must be intergers

为什么我的会报错?string indices must be intergers

Topic source

城南梦想

#1 Created at ... [Delete] [Delete and Lock User]

def trim(s): l = [] for i in s: if s[i] == " ": continue else: l.append(s[i]) return l


  • 1

Reply