因此,我试图让用户上传一个标志的图像,但我一直收到相同的错误"type object ' image‘has no attribute 'open'“。我已经查过了,但似乎找不到答案。我尝试将Image作为IMG导入,但收到错误消息"'module‘object is not callable“。我试过了我得到了同样的错误。I imported this primarily for tooltips so the user kn
我有这个问题,AttributeError: type object 'ElementTree' has no attribute 'tostring',我不知道哪里出了问题,我导入字符串,它不工作。尝试按照另一个教程进行操作,但是什么都没有。
是否有其他方法可以将ElementTree对象转换为XML字符串?