mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
49 lines
504 B
Python
49 lines
504 B
Python
# -----------------
|
|
# lists
|
|
# -----------------
|
|
arr = []
|
|
#? ['append']
|
|
arr().app
|
|
|
|
#? ['append']
|
|
list().app
|
|
|
|
|
|
# -----------------
|
|
# dicts
|
|
# -----------------
|
|
dic = {}
|
|
|
|
#? ['clear', 'copy']
|
|
dic.c
|
|
|
|
dic2 = dict(a=1, b=2)
|
|
#? ['pop', 'popitem']
|
|
dic2.p
|
|
|
|
|
|
# -----------------
|
|
# set
|
|
# -----------------
|
|
set_t = {1,2}
|
|
|
|
#? ['clear', 'copy']
|
|
set_t.c
|
|
|
|
set_t2 = set()
|
|
|
|
#? ['clear', 'copy']
|
|
set_t2.c
|
|
|
|
# -----------------
|
|
# tuples
|
|
# -----------------
|
|
tup = ('',2)
|
|
|
|
#? ['count']
|
|
tup.c
|
|
|
|
tup2 = tuple()
|
|
#? ['index']
|
|
tup2.i
|