- 博客(2)
- 收藏
- 关注
原创 Python中的引用与浅拷贝的区别——以二叉树节点为例
今天刷leetcode,在python的引用和浅拷贝的问题上面纠结了半天,做二叉树的题时一直分不清什么时候用浅拷贝才能避免出问题。那么,我们先定义一下二叉树的节点,就直接用LeetCode给的定义吧: class Node: def __init__(self, val, left=None, right=None): self.val = val self...
2020-03-07 18:25:15
139
原创 【BUG】Could not find a version that satisfies the requirement PIL
Could not find a version that satisfies the requirement PIL 报错原因: 现在已经用Pillow代替PIL,PIL较多用于2.7版本的python中 解决方法: pip install pillow
2020-03-07 17:26:38
130
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人