sisi, corretto... ma anche cambiandola non mi scrive il file...
luciano fornari wrote: > A me sembra che la variabile "voiper" non sia definita, forse volevi > scrivere "voi" (che mi pare quella esatta: > > voi=f.readline() ) > > > al posto di "voiper"? o mi sbaglio? > > Igor Longhi ha scritto: > >> import socket >> >> #Hostname >> host = socket.gethostname() >> >> #primo file >> f=open ("/etc/ver_1") >> voi=f.readline() >> print voi >> >> #secondo file >> v=open("/etc/ver_2") >> vcti=v.readline() >> >> >> lista=[host, voiper, vcti] >> >> #creiamo il CSV >> csv=open("/etc/dati.csv", "a") >> for item in lista: >> csv.write(lista) >> >> _______________________________________________ >> >> >> >> > > _______________________________________________ > Python mailing list > Python@lists.python.it > http://lists.python.it/mailman/listinfo/python > > > _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python