使用python从文本文件中匹配和复制值

时间:2016-04-13 05:53:42

标签: python-2.7

   s =    'metacountry^AU|metalanguage^EN|metaharddrive^124gb|metabluetooth^Bluetoo'
 k = s.split('|')
#print k
 for attribute in k:
#print vals

对于l in vals:
       打印l

0 个答案:

没有答案