开发者

if I run a .py script, can I open a new terminal, modify the file and run it also?

if I run a .py script, can I open a new terminal, modify the file and run it also?

i.e. does the file that I run get loaded in memory, such that I can modify the file and run it at the same time in a diffe开发者_C百科rent terminal?


Yes.

Here's my original test code.

while 1:
    print "This is the original."

Here's the modified code:

while 1:
    print "This is modified."


Yes you can. Is this a hard thing to test yourself?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜