摘要: import matplotlib.pyplot as pltimport numpy as npimport timefrom django.template.defaultfilters import centerdef loadDataSet(fileName): dataMat=[] ... 阅读全文
posted @ 2014-05-19 15:54 sxcww 阅读(773) 评论(0) 推荐(0) 编辑
摘要: str.strip([chars]) 删除字符串左右两端的相应字符,直到没有符合的字符为止。(lstrip则是只删除左侧的字符,rstrip则是只删除右侧的字符。) In [4]: t='wwerefdfww'In [5]: t.strip('w')Out[5]: 'erefdf'str.split([sep[, maxsplit]]) 根据规定的字符将字符串进行分割 In [1]:... 阅读全文
posted @ 2014-05-19 14:19 sxcww 阅读(174) 评论(0) 推荐(0) 编辑