PYTHON LANGUAGE LIST TUPLES DICTIONARY
PYTHON
LANGUAGE
- LIST
- TUPLES
- DICTIONARY
LIST
TUPLES
DICTIONARY
????? ??????????????????????????????????????????? ?????? ??? ??????????????? ?
??????????? ????????? ????????? ???????????? ( , ) ???????? ?????????? [ ]????????? ???????
???????????? 0 ????????????????????????????????????????????? ??? ?????????? ????????? ?
????????????
?????? ??
list1 = ['physics', 'chemistry', 1997, 2000];
list2 = [1, 2, 3, 4, 5, "a", "b"];
???????????? ??????????????????? [] ????????????? ???????????????????????? ?????? ?
??????? ?? list1 = ['physics', 'chemistry', 1997, 2000];
list2 = [1, 2, 3, 4, 5, "a", "b"];
print "list1[0]: ", list1[0];
list1[0]: physics
????????????????? ?????????(+)??????????????????????????????????????
???????? ??????????????? (*) ?????????????????????????????????????? ???
print list1 + list2;
Print list2 * 2;
['physics',
'chemistry', 1997,2000,1, 2, 3, 4, 5, "a", "b"]
[1, 2, 3, 4, 5, "a", "b", 1, 2, 3, 4, 5, "a", "b"]
???????????????? ?
list2 = [1, 2, 3, 4, 5, "a", "b"];
print "list2[1:5]: ", list2[1:5];
list2[1:5]: [2, 3, 4, 5]
print "list2[2:]: ", list2[2:];
list2[2:]: [3, 4, 5, "a", "b"];
print "list2[-2]: ", lis1[-2];
list2[-2]: a
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- 0 5 lab introduction to python—sets lists dictionaries
- how to get keys of python dictionary as list
- python language list tuples dictionary
- chapter 2 lists arrays and dictionaries
- python 3 beginner s reference cheat sheet http www
- data structures in python grapenthin
- 1 functions in python
- lecture 14 nested lists tuples and dictionaries
Related searches
- list of dictionary words
- create list of dictionary python
- convert list to dictionary python
- python language specification
- add list to dictionary python
- python language reference manual pdf
- air force strategic language list sll
- the python language reference pdf
- list of dictionary in python
- make list from dictionary python
- army strategic language list 2019
- list vs dictionary python