v=Vector(range(7)) v=bytes(v,encoding='utf-8') **TypeError: encoding without a string argument** 先别管编码什么的!!!!!!! 先看你传入的对象类行是不是Str,不是的话传入 str(obj) !!!