我使用File.ReadAllBytes();獲得了一個字節數組,並將其轉換爲字符串(s)。 string name;
string s;
byte[] bytes;
bytes = File.ReadAllBytes(name);
foreach (byte b in bytes)
{
s = s + b + ".";
在Python 2.6.8我寫一個Unicode字符串時,遇到下列錯誤: Traceback (most recent call last):
File "test.py", line 10, in <module>
f.write(bytearray(u, 'utf_8'))
TypeError: argument 1 must be string or pinned bu