29
次の機能をPython 2.7より前のバージョンのPythonと互換性を持たせるにはどうすればよいですか?Python 2.7以前のディクテーションの代わりに
gwfuncs = [reboot, flush_macs, flush_cache, new_gw, revert_gw, send_log]
gw_func_dict = {chr(2**i): func for i, func in enumerate(gwfuncs[:8])}