単一原子の基底状態のイオンの質量をPythonで求める。データは nds.iaea.org から引っ張ってきた。APIの説明。 def get_ion_mass(z, a, q): import os gs_filename = "ground_states.csv" if not os.path.exists(gs_filename): import urllib.request url = "https://nds.iaea.org/relnsd/v0/data?fields=ground_states&nuclides=all" req = urllib.request.Request(…