# Python CodeRecipe|ord()の使い方

HomeFunctions

# rd()の例1

Return the iteger that represents the character "h":

    x = ord("h")

# rd()の定義及び使い方

ord()関数は数値を返します。 指定された文字のUnicodeコードを表します。

# rd()の構文

    ord(character)

# rd()の引数

文字 文字列、任意の文字

Related Pages Convert back to character with the chr() function.

HomeFunctions