{"url":"https://ai-de-seikei.hatenablog.com/entry/2023/10/07/124244","author_url":"https://blog.hatena.ne.jp/fanta_orange_grape/","type":"rich","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fai-de-seikei.hatenablog.com%2Fentry%2F2023%2F10%2F07%2F124244\" title=\"ChatGPT\u306bpyhon\u306edeepcopy\u3092\u81ea\u4f5c\u3057\u3066\u3082\u3089\u3063\u305f\u3002\u306a\u3093\u3067\u3001\u3053\u3093\u306a\u306e\u3092\u4f5c\u308b\u3053\u3068\u304c\u53ef\u80fd\u306a\u3093\u3060\u308d\u3046\u3002\u3002\u3002 - AI\u3046\u3049\uff0d\uff0d\uff01(ai-wo-katsuyo-shitai !)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","published":"2023-10-07 12:42:44","categories":[],"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","title":"ChatGPT\u306bpyhon\u306edeepcopy\u3092\u81ea\u4f5c\u3057\u3066\u3082\u3089\u3063\u305f\u3002\u306a\u3093\u3067\u3001\u3053\u3093\u306a\u306e\u3092\u4f5c\u308b\u3053\u3068\u304c\u53ef\u80fd\u306a\u3093\u3060\u308d\u3046\u3002\u3002\u3002","blog_url":"https://ai-de-seikei.hatenablog.com/","description":"ChatGPT\u306b\u3088\u308bdeepcopy\u81ea\u4f5c \u3053\u3093\u306a\u30b3\u30fc\u30c9\u3092\u4f5c\u3063\u3066\u304f\u308c\u305f\u3002 import copy def deep_copy(obj): if isinstance(obj, list): return [deep_copy(item) for item in obj] elif isinstance(obj, dict): return {key: deep_copy(value) for key, value in obj.items()} else: return copy.copy(obj) \u306a\u305e \u3053\u306e\u3088\u3046\u306a\u3084\u308a\u65b9\u304c\u3042\u308b\u3088\u3046\u306a\u306e\u3060\u304c\u3002\u3002\u3002 \u306a\u3093\u3067\u3001\u305d\u308c\u3092\u77e5\u3063\u3066\u3044\u3066\u3001\u305d\u308c\u304c\u63d0\u4f9b\u3067\u304d\u308b\u306e\u304b\u3001\u2026","blog_title":"AI\u3046\u3049\uff0d\uff0d\uff01(ai-wo-katsuyo-shitai !)","width":"100%","author_name":"fanta_orange_grape","image_url":null}