Lists can be written as a list of comma-separated values (items) between square brackets.,,a = ['spam',
Lists can be written as a list of comma-separated values (items) between square brackets.,,a = ['spam',
a = ['spam', 'eggs', 100, 1234]print a
相关内容
- Define and use integer,defineinteger,print 2+2
- Int value demo,intvaluedemo,number = inp
- Make 2 sets out of sequences: Intersection, Union, Difference,,X =
- Pickling and shelving data,picklingshelving,import cPick
- Demonstrates pickling and shelving data,picklingshelving,import cPi
- File read(n),fileread,f = open(r'c
- Looping Over Characters with read,loopingcharacters,f = open('fi
- Bind Key action: Return,bindaction,from Tkinter
- File write(string),filewritestring,f = open(r'c
- Open a file and read a line,openline,myfile = ope
评论关闭