Python输出带空格的字符串 EYYLTV 2024-06-25 43 阅读1分钟 import re string = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' pattern = re.compile('.{1,1}') print(' '.join(pattern.findall(string)))