{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F20110322%2F1300757335\" title=\"Python\u3067\u5b66\u3076\u300c\u8a73\u89e3 UNIX\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300d(\u305d\u306e7) \u7b2c7\u7ae0 \u30d7\u30ed\u30bb\u30b9\u306e\u74b0\u5883 - atsuoishimoto&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Python\u3067\u5b66\u3076\u300c\u8a73\u89e3 UNIX\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300d(\u305d\u306e7) \u7b2c7\u7ae0 \u30d7\u30ed\u30bb\u30b9\u306e\u74b0\u5883","version":"1.0","url":"https://atsuoishimoto.hatenablog.com/entry/20110322/1300757335","published":"2011-03-22 10:28:55","provider_name":"Hatena Blog","width":"100%","author_name":"atsuoishimoto","blog_url":"https://atsuoishimoto.hatenablog.com/","type":"rich","categories":["Python","APUE"],"image_url":null,"author_url":"https://blog.hatena.ne.jp/atsuoishimoto/","blog_title":"atsuoishimoto's diary","provider_url":"https://hatena.blog","description":"7.1 \u7d42\u4e86\u30cf\u30f3\u30c9\u30e9\u306e\u4f8b import atexit def my_exit1(): print \"first exit handler\" def my_exit2(): print \"second exit handler\" atexit.register(my_exit2) atexit.register(my_exit1) atexit.register(my_exit1) print \"main is done\" Python 2.6\u4ee5\u964d\u3067\u306f\u3001atexit.register()\u3092\u30c7\u30b3\u30ec\u30fc\u30bf\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002 import atexit @atexit.register def\u2026","height":"190"}