Xpath solve the list of data extracted, the problem can not be one to one when you save

"" " 
Zipper function, zip several lists of data are encapsulated, one by one.
If the data list is one less than the other, then according to at least one of the data corresponding to
" ""
# corresponding to the number of data equal
list1 = [ 1,2,3,4,5,]
List2 = [6,7,8,9,10]
Data = ZIP (List1, List2)
# tuples output
for I in Data:
Print (I)
Print (type ( I))


# # output string
# for J, K in data:
# Print (STR (J) + "," + STR (K))




# corresponding to the number of data not equal
# list1 = [1,2,3 , 4,5,]
# List2 = [6,7, 8]
# Data = ZIP (List1, List2)
# # output tuples
# for I in Data:
# Print (I)
# Print (type (I))
# # output string
# for J, K in Data:
# Print (STR (J) + "," + STR (K))

Guess you like

Origin www.cnblogs.com/YangQingHong/p/10983198.html