在python中如何将实例转换为字符串类型?假设类实例是类的printHello 现在当我执行下面的代码时 print printHello 输出是"HelloPrinted" 现在我想将printHello与字符串类型进行比较,但由于prin ...2024-06-16 已阅读: n次