Dec-26-2018, 09:23 AM
Hello guys. I write two python code and I can pass variable two scrpit but I have some problem. My scrpits this:
script1.py
script1.py
x='a' import script2script2.py
import script1 import time print "second script start" print script1.x print "secon script end"When I ran script2.py result this:
Output: second script start
a
second script end
second script start
a
second script end
Why script2.py return result twice. How can i fix twice run problem? Thanks