Pythonのint-string変換

intへ変換

intへ変換には、int関数を使用する。

num = int("32")

stringへ変換

stringへ変換には、str関数を使用する。

str = str(32)