我有一点问题:为什么这个代码
somefile = open('foo.txt', 'w')
somefile.write('0B0B0B'.decode('hex'))
somefile.close()
Run Code Online (Sandbox Code Playgroud)
在文件中写入0B0B0B,此代码
somefile = open('foo.txt', 'w')
somefile.write('0A0A0A'.decode('hex'))
somefile.close()
Run Code Online (Sandbox Code Playgroud)
在文件中写入0D0A0D0A0D0A?'0D'来自哪里?
| 归档时间: |
|
| 查看次数: |
1210 次 |
| 最近记录: |