擅长:python、mysql、java
<p>你的代码有点难以理解,但我很确定你只是想删除一个子字符串。你可以利用结构更换()使用unicode字符串:</p>
<pre><code>self.vFOTO.replace(u'\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00', "")
</code></pre>
<p>.replace(old,new,max)其中old是要查找的子字符串,new是要替换它的内容,max是要限制的匹配数(默认为子字符串的所有实例)。在</p>
^{pr2}$