Python Assigning values in lists Python 字符串String isdecimal() 方法 Python Updating lists Python Assigning values in lists #!/usr/bin/python list1 = ['physics', 'chemistry', 1997, 2000]; list2 = [1, 2, 3, 4, 5, 6, 7 ]; print "list1[0]: ", list1[0] print "list2[1:5]: ", list2[1:5] Python 字符串String isdecimal() 方法 Python Updating lists