开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜