Python source file rewriting (can be executed correctly by the Python interpreter) idea

"""
1.内置函数和内置常数
import keyword,builtins
s=keyword.kwlist
s+=dir(builtins)
2.读取源代码中的库函数,库常数
from importlib import import_module

modname="turtle"
turtle_modname=import_module(modname)
3.路径问题
    这个理论通过正则可以
4.自定义函数的参数及以上参数是否大写

"""

1, 2 Collect a complete list of reserved words
3, 4 Ensure that the function can be executed correctly

Maybe I’m thinking a bit too much. I
’ll take a look at this one after I’ve learned it. I saw an increase in page views, but I’ve liked
0
Bald

Guess you like

Origin blog.csdn.net/AQ_No_Happy/article/details/107191064