📜  python bug - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:16.184000             🧑  作者: Mango

代码示例1
#this is a small bug for beginners
first = [1, 2, 3, 4, 5]

print(first)
second = first
print(second)
second.append(6)
print(second)
print(first)

if first == second :
    print("bug! you will get hacked!")