What does += mean in Python?

后端 未结 6 508
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 08:29

I see code like this for example in Python:

    if cnt > 0 and len(aStr) > 1:
        while cnt > 0:                  
            aStr = aStr[1:]+a         


        
6条回答
  •  孤街浪徒
    2020-12-01 09:12

    Google 'python += operator' leads you to http://docs.python.org/library/operator.html

    Search for += once the page loads up for a more detailed answer.

提交回复
热议问题