![](/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.