Script execution
This commit is contained in:
1 parent
569de2c553
commit
eaf67c04d7
1 file changed
+4
-3
@@ -4,6 +4,7 @@ def f(name):
|
||||
print('hello', name)
|
||||
|
||||
|
||||
p = Process(target=f, args=('bob',))
|
||||
p.start()
|
||||
p.join()
|
||||
if __name__ == '__main__':
|
||||
p = Process(target=f, args=('bob',))
|
||||
p.start()
|
||||
p.join()
|
||||
Reference in new issue
Block a user