IronPython Array[byte] to string
I'm trying to save received data into file:
#data Array[byte]
fl = open(file_name, 'wb')
fl.write(<.....>)
fl.close()
So how can I get开发者_运维百科 string from Array[byte] to make it possible?
In IronPython 2.6 and above you should be able to do:
fl.write(bytes(<......>))
精彩评论