擅长:python、mysql、java
<p>非常感谢-我按照建议试了试,得到了答案以下内容:你知道吗</p>
<pre><code>pi@raspberrypi:~/md380tools $ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> s = u'Feb 21 10:10 W\x00i\x00l\x00l\x00 a\x00r\x00r\x00i\x00v\x00e \x00c\x00o\x00n\x00t\x00ro\x00l\x00 \x00X\x00X\x00 m\x00i\x00n'
>>> f = open('test.txt', 'wb')
>>> f.write(s.encode())
>>> exit()
pi@raspberrypi:~/md380tools $ more test.txt
Feb 21 10:10 W
pi@raspberrypi:~/md380tools $ cat test.txt
Feb 21 10:10 Will arrive control XX minpi@raspberrypi:~/md380tools $
</code></pre>
<p>所以通过“更多”查看文件似乎有问题?我必须承认我不明白为什么猫能工作,而更多的不能</p>
<p>再次感谢</p>
<p>汤姆</p>