Mar-21-2019, 02:06 PM
I try to write my list, but I need len() for write it.
if I write in str, they print 5 item.
this is my code
if I write in str, they print 5 item.
this is my code
y=list(map(int, y)) print(y) y[0]+=1 print(y) f = sftp.open("/home/pi/SiteCyberdependance/donne/donne.txt", "w+") with sftp.open("/home/pi/SiteCyberdependance/donne/donne.txt", "w") as f: sftp=paramiko.SFTPFile.write f.write(y[item])
Error:TypeError: object of type 'int' has no len()