Python want to extract elements

Data processing encountered

= A '' '
 recharge coupons item 12999 12999_coupons 
recharge coupons 16,999 items 16999_coupons 

' ''
 array a.split = ( ' \ n- ' ) is converted to a string array array # 
# Print (array) 
for obj in array:
     IF obj ! = "" : # strips spaces 
        tempArray = obj.split ( ' \ T ' ) removed # //
         # Print (tempArray) 
        URL = tempArray [ 2 ] the second extraction element # 
        print (url)

The results are:

12999_coupons
16999_coupons

Guess you like

Origin www.cnblogs.com/qiqi-yhq/p/12073638.html