摘要: title: Rust的Display和ToString:将对象转换为字符串 zhihu-url: https://zhuanlan.zhihu.com/p/684722496 在写代码的时候,我们经常需要将对象输出到屏幕上,或者转换为字符串;在Python中,我们可以为类型定义魔法函数__str_ 阅读全文
posted @ 2024-03-01 11:18 Cinea 阅读(52) 评论(0) 推荐(0) 编辑