6
String.fromCharCode
は、Unicodeコードポイント値のリストに基づいて文字列を返します。 @see referenceJavaScriptのString.fromCharCodeのpythonバージョンはありますか?
Pythonにアナログがありますか?
String.fromCharCode
は、Unicodeコードポイント値のリストに基づいて文字列を返します。 @see referenceJavaScriptのString.fromCharCodeのpythonバージョンはありますか?
Pythonにアナログがありますか?
あなたはこれを使用することができます:''.join(map(unichr, lst))
例:
''.join(map(unichr, [65,66,67])) # outputs ABC
+1。引数が可変である等価な関数の場合は、次のようになります。def from_char_code(* args):return '' .join(map(unichr、args)) '。 –