开发者

how does execfile() work in python?

does the file which is 开发者_高级运维sent as an argument to execfile runs as an independent process / thread or is the code imported and then executed ? . Also i wanted to know how efficient is it compared to running threads / process .


The file is not run in a separate thread or process, it runs synchronously with the caller.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜