开发者

IronPython Array[byte] to string

开发者 https://www.devze.com 2023-01-13 23:39 出处:网络
I\'m trying to save received data into file: #data Array[byte] fl = open(file_name, \'wb\') fl.write(<.....>)

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(<......>))

0

精彩评论

暂无评论...
验证码 换一张
取 消