in python assert

 

the Assert 1 == 2, ( " assertion error " )

It is equivalent to:

IF  not 1 == 2 :
     The raise AssertionError ( " assertion error! " )

 

Guess you like

Origin www.cnblogs.com/yibeimingyue/p/11416165.html