{"version":"1.0","description":"\u3044\u307e\u3055\u3089\u3060\u3051\u3069\u3001 http://0xcc.net/blog/archives/000043.html \u306e Python \u306e\u90e8\u5206\u3092\u6dfb\u524a\u3002 len(a) == 0 \u306f\u3001 if a: \u306e\u3088\u3046\u306b\u30ea\u30b9\u30c8\u81ea\u4f53\u304c\u7a7a\u306e\u6642\u306b\u507d\u306b\u306a\u308b\u306e\u3067\u4f7f\u308f\u306a\u3044\u3002 a.pop(0) \u306f del a[0] \u3068\u3082\u66f8\u3051\u308b\u3002\u3069\u3061\u3089\u3067\u3082\u826f\u3044\u304c\u3001\u591a\u5206\u5c5e\u6027\u53c2\u7167\u304c\u7121\u3044\u5206 del \u306e\u65b9\u304c\u9ad8\u901f a[:] = [] \u3082\u540c\u3058\u304f del a[:] a.remove(x) \u203b\u6700\u521d\u306e\u4e00\u3064\u3057\u304b\u524a\u9664\u3055\u308c\u306a\u3044 \u306f\u3001\u3059\u3079\u3066\u306ex\u3092\u524a\u9664\u3057\u305f\u3044\u306a\u3089 a = [y for y in a if y != x] del(a[i]) \u306f\u3001 del \u304c\u95a2\u6570\u3067\u306f\u306a\u3044\u306e\u3067 del a[\u2026","provider_name":"Hatena Blog","height":"190","blog_title":"methane\u306e\u30d6\u30ed\u30b0","published":"2010-02-24 12:19:36","author_name":"methane","image_url":null,"url":"https://methane.hatenablog.jp/entry/20100224/1266981576","type":"rich","author_url":"https://blog.hatena.ne.jp/methane/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20100224%2F1266981576\" title=\" Python\u306e\u914d\u5217\u64cd\u4f5c - methane\u306e\u30d6\u30ed\u30b0\" 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\u306e\u914d\u5217\u64cd\u4f5c","width":"100%","provider_url":"https://hatena.blog","blog_url":"https://methane.hatenablog.jp/","categories":["Python"]}