from string import ascii_lettersx=input("输入字符串:")hz=[]zm=[]for xx in x: if xx in ([chr(j) for j in range(19968,40867)]): hz.append(xx) print(f"汉字:{xx}") elif xx in ascii_letters: zm.append(xx) print(f"字母:{xx}")print([hz,zm])