python little knowledge consolidation

Dictionary initializing difference 1.Python dict () {} and the

Performance, better performance {}

Comparison of the two byte code:

{By} initialization can be completed only by a constant command,

By dict (), you need to be performed CALL_FUNCTION instruction.

 

Guess you like

Origin blog.csdn.net/qq_33283652/article/details/91491547