def trim(s):
result = []
for m in range(s):
if m == " ":
continue
else:
result.append(m)
print(result)
trim("Hello ")
Sign in to make a reply
故
def trim(s):
result = []
for m in range(s):
if m == " ":
continue
else:
result.append(m)
print(result)
trim("Hello ")