开发者

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

开发者 https://www.devze.com 2023-01-10 11:11 出处:网络
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

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

精彩评论

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