import ast
tree = ast.parse('def hello_word(): print("hello world!")')
def hell_word():
print(1)
print(ast.dump(tree))
- 語法樹
- 可以基於這個實現另外一種編程語言
import ast
tree = ast.parse('def hello_word(): print("hello world!")')
def hell_word():
print(1)
print(ast.dump(tree))
win10 CMD 中操作linux 子系統 lxRun drvfs 自動掛載 C盤 D盤 /mnt/c /mnt/d echo %Local