以下の内容はhttps://blog.systemjp.net/entry/2018/06/05/190615より取得しました。


pythonの関数で返り値2つ以上返す

カンマ区切りでreturnするだけ

def test():
    return "str", 100

配列で返ってくる

result = test()
print(type(result))     # <type 'tuple'>
print(result)           # ('str', 100)
print(result[0])        # 'str'
print(result[1])        # 100
print(result[2])        # IndexError: tuple index out of range



以上の内容はhttps://blog.systemjp.net/entry/2018/06/05/190615より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14