Reference to Part of List - Python

后端 未结 4 1164
暖寄归人
暖寄归人 2020-12-11 02:01

If I have a list in python, how can I create a reference to part of the list? For example:

myList = [\"*\", \"*\", \"*\",  \"*\", \"*\", \"*\", \"*\", \"*\",         


        
4条回答
  •  清歌不尽
    2020-12-11 02:36

    There's nothing in python that really does what you want. Basically you want to write some sort of proxy object.

提交回复
热议问题