salve amici ho un problema vorrei unire un file con un link ed aprire file quando apro link in python grazie
ho provato webbroswer ma nnt
ho provato webbroswer ma nnt
import socket
hostname=socket.gethostname()
IPAddr=socket.gethostbyname(hostname)
print("Your Computer Name is:"+hostname)
print("Your Computer IP Address:"+IPAddr)
with open('newfile.txt', 'w') as file:
file.write ("Your Computer Hostname is: " + hostname)
file.write ("Your IP Address: " + IPAddr)