2016-02-21 pythonで無限大を表現する 103.python 100.Tech pythonで無限大を表現するには float('inf') とします。 ダイクストラ法でまだ訪れていない地点を表現する際に使用します。