Script execution
This commit is contained in:
@@ -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