{"type":"rich","categories":["\u907a\u4f1d\u7684\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0","Python"],"author_name":"moratorium08","description":"http://www14.ocn.ne.jp/~kk62526/Lsys/ \u306a\u3093\u304b\u3059\u3054\u3044\u3084\u3064\u3063\u307d\u3044\u3002\u907a\u4f1d\u7684\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u30b0\u30e9\u30d5\u306e\u6587\u6cd5\u30a8\u30f3\u30b3\u30fc\u30c9\u304c\u4f7f\u3048\u308b\u3068\u304b\u4f7f\u3048\u306a\u3044\u3068\u304b def lsystem(a): if a==0: return \"F\" str = lsystem(a-1) result=[] for x in str: if x==\"F\": result.append(\"F-F++F-F\") else: result.append(x) return ''.join(result) inp = input(\"step:\") print lsystem(inp)","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/moratorium08/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoraprogramming.hateblo.jp%2Fentry%2F2013%2F10%2F09%2F070947\" title=\"L-system\u3068\u306a - \u6b23\u5feb\u306e\u81f3\u308a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"published":"2013-10-09 07:09:47","blog_url":"https://moraprogramming.hateblo.jp/","url":"https://moraprogramming.hateblo.jp/entry/2013/10/09/070947","version":"1.0","height":"190","title":"L-system\u3068\u306a","blog_title":"\u6b23\u5feb\u306e\u81f3\u308a","width":"100%"}