📅  最后修改于: 2022-03-11 14:48:33.009000             🧑  作者: Mango
stringtosplit = 'hello75world'
letters = []
numbers = []
for k in stringtosplit:
if k.isalpha() == True:
letters.append(k)
elif k.isdigit() == True:
numbers.append(k)
letters = ''.join(letters)
numbers = ''.join(numbers)
print(numbers)
print(letters)