新增于: v0.5.1
punycode.encode() 方法将一串 Unicode 代码点的字符串转换为仅包含 ASCII 字符的 Punycode 字符串。
【The punycode.encode() method converts a string of Unicode codepoints to a
Punycode string of ASCII-only characters.】
punycode.encode('mañana');
punycode.encode('☃-⌘');