I cannot get the command cmp()
to work.
Here is the code:
a = [1,2,3]
b = [1,2,3]
c = cmp(a,b)
print (c)
I am getting the error:
Traceback (most recent call last):
File "G:DropboxCodea = [1,2,3]", line 3, in <module>
c = cmp(a,b)
NameError: name 'cmp' is not defined
[Finished in 0.1s]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…