我一直试图在列表中找到一个自引用循环.我像这样引用了这个列表:
a = [1, 2, None] a[2] = a
在python中检测这个循环的正确方法是什么?
python python-3.x
python ×1
python-3.x ×1