Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要生成所有非字母字符、标点符号、空格、奇怪的字符等。它们是所有出现在 ascii 代码中的字符还是其他字符?在python中我应该简单地做:
''.join(map(lambda i: chr(i), range(255)))
对于非 ASCII 非字母字符的示例,这里是埃塞俄比亚段落分隔符:፨ — 顺便说一句,本段中还有其他三个不同的非 ascii 非字母字符……</p>
所以不,ASCII 字符集并不包含所有非字母字符。