Why the bytecode is different for string multiplication?

前端 未结 0 926
甜味超标
甜味超标 2020-12-11 00:17

I was playing around with strings and came across the following behavior,

>>> dis.dis(\'"abcdefgh" * 513\')
  1           0 LOAD_CONST              


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题