2021-12-13 21:44:05 +08:00
|
|
|
from PikaObj import *
|
|
|
|
|
2021-12-13 22:01:42 +08:00
|
|
|
|
2021-12-13 21:44:05 +08:00
|
|
|
class List(TinyObj):
|
|
|
|
def __init__():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# add an arg after the end of list
|
|
|
|
def append(arg: any):
|
|
|
|
pass
|
|
|
|
|
|
|
|
# get an arg by the index
|
|
|
|
def get(i: int) -> any:
|
|
|
|
pass
|
|
|
|
|
2021-12-13 22:01:42 +08:00
|
|
|
# set an arg by the index
|
2021-12-13 21:44:05 +08:00
|
|
|
def set(i: int, arg: any):
|
|
|
|
pass
|
|
|
|
|
|
|
|
# get the length of list
|
|
|
|
def len() -> int:
|
2021-12-13 22:01:42 +08:00
|
|
|
pass
|
|
|
|
|
2021-12-24 22:44:56 +08:00
|
|
|
def __iter__() -> any:
|
|
|
|
pass
|
|
|
|
|
|
|
|
def __next__() -> any:
|
|
|
|
pass
|
|
|
|
|
2021-12-13 22:01:42 +08:00
|
|
|
|
|
|
|
class Dict(TinyObj):
|
|
|
|
def __init__():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# get an arg by the key
|
|
|
|
def get(key: str) -> any:
|
|
|
|
pass
|
|
|
|
|
|
|
|
# set an arg by the key
|
|
|
|
def set(key: str, arg: any):
|
|
|
|
pass
|
|
|
|
|
|
|
|
# remove an arg by the key
|
|
|
|
def remove(key: str):
|
|
|
|
pass
|
2021-12-24 22:44:56 +08:00
|
|
|
|
|
|
|
def __iter__() -> any:
|
|
|
|
pass
|
|
|
|
|
|
|
|
def __next__() -> any:
|
|
|
|
pass
|