Output Formatting: repr,formattingrepr,#The repr mo
Output Formatting: repr,formattingrepr,#The repr mo
#The repr module provides an version of repr() for abbreviated displays of large or #deeply nested containers:import repr print repr.repr(set('supercalifragilisticexpialidocious'))
相关内容
- Variables in a list,variablesinlist,X = [1, 2, 3
- 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,
评论关闭