Use AI to translate code from one language to another.
Use AI to translate code from one language to another.
ãããªãã¯ãã¡ã¤ã³ç cflow ã«ã¯ GNU cflow ã® -T, --tree * Draw ASCII art treeã¨ãããªãã·ã§ã³ããªãã®ã§ãã¤ã³ãã³ãã§è¡¨ãããå¼ã³åºãæ§é ï¼ãªããµã¤ãã«ã¼ã«ï¼ï¼ãããªã¼å½¢å¼ã«å¤æããã³ãã³ããæ¸ãã¦ã¿ãã #!/usr/bin/python import sys def getlevel(s): return len(s) - len(s.lstrip()) def parselist(lines): if len(lines) == 0: return [[], 0] tree = [] i = 0 currentlevel = getlevel(lines[0]) while i < len(lines): level = getlevel(lines[i]) if level > currentlevel: # Indent incr
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}