python - TypeError: expected a character buffer object -
i running next error while writing value file. can please help me figure out issue here , how prepare it?
row = 649 open(r'\\loc\dev\build_ver\build_ver.txt','r+') f: f.write(row) print row error:
traceback (most recent phone call last): file "latest_rev.py", line 6, in <module> f.write(row) typeerror: expected character buffer object
assuming want write string '649' file, alter row '649' or issue f.write(str(row)).
python
No comments:
Post a Comment