Skip to content

Instantly share code, notes, and snippets.

@dcortesnet
Last active February 11, 2024 02:53
Show Gist options
  • Select an option

  • Save dcortesnet/1483a85ae0557b7e6c62f00c2ab407f3 to your computer and use it in GitHub Desktop.

Select an option

Save dcortesnet/1483a85ae0557b7e6c62f00c2ab407f3 to your computer and use it in GitHub Desktop.
Python creación de hilo básico
from threading import Thread
def counter():
for i in range(1, 11):
print(i)
t = Thread(target=counter)
t.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment