Variables in a list,variablesinlist,X = [1, 2, 3
Variables in a list,variablesinlist,X = [1, 2, 3
X = [1, 2, 3]L = ['a', X, 'b'] # embed references to X's objectD = {'x':X, 'y':2}X[1] = 'surprise' # changes all three references!print Lprint D
相关内容
- List insert(i, x),listinsert,#Insert an i
- More than one format in the string,formatstring,#If there is
- Find symbolic links and show where they point to,symboliclinks,'''P
- Close a file,closefile,f=open('/tmp
- Define and use int,defineanduseint,a = 3
- Display a slice,displayslice,inventory =
- Define function: return int value,definefunction,def inc(x):
- A function that returns a list of the numbers of the Fibonacci series,
- Return three value,returnthreevalue,def func(x,
- Turn parameters into a dictionary,,def f(**args
评论关闭