文章分类 - 

摘要:构造树的节点 1、格式: 1.1、二叉树构造 class TreeNode: def __init__(self, content): self. content = content self.lchirl = none self.rchirl = none def __str__(self): r 阅读全文
posted @ 2023-01-16 12:34 天空之城—我的理想国 阅读(17) 评论(0) 推荐(0) 编辑
摘要:python构造器(主要是看__init__构造器) 1、什么是构造器? Python构造器 - 简书 (jianshu.com) 2、构造器的作用? (102条消息) Python中__init__的用法和理解_luzhan66的博客-CSDN博客_python __init__ (102条消息) 阅读全文
posted @ 2023-01-16 12:16 天空之城—我的理想国 阅读(31) 评论(0) 推荐(0) 编辑