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?
精彩评论