摘要: __author__ = 'Alex' import re; str_list = [] def fetch(ci,li,str): for k in range(len(ci)-1): if ci[k] > ci[k+1]: print(("li[k] = %s,li[k+1] = %s")%(l 阅读全文
posted @ 2016-05-13 22:31 Alex0425 阅读(2841) 评论(0) 推荐(0) 编辑
摘要: __author__ = 'Alex' # -*- coding:UTF-8 -*- import re import string str = "-10+30-20*11+40*21/5-100+70-2*13+14" data_list=[] sym_list=[] data_list = re.findall('\d+',str) sym_list = re.findall('\D+',... 阅读全文
posted @ 2016-05-13 22:24 Alex0425 阅读(635) 评论(0) 推荐(0) 编辑