![](/img/trans.png)
[英]How do I register a python function to be called when garbage collection (GC) starts and is completed?
[英]How do I make a function run when Python starts
我想知道在python启动时是否有一种使函数运行的方法,这就是我目前正在做的事情:
def JC():
print("Just Chill Coding Enviorment")
import JC_startup()
您可以创建一个main函数 ,也可以将其放在顶部。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.