** typeerror:object type<class ‘str’> cannot be passed to c code ** 一个新手问题 把str类型的变量后面加上.encode()即可,还不行的话, 加上’utf-8’,试试 同理,再变成str的时候加上.decode()