随笔分类 -  程序语言

摘要:直接通过例子看比较好理解. ~~~python import pandas as pd data = [[1, 2, 3], [2, 2, 2], [7, 8, 9]] df = pd.DataFrame(data, index=['a', 'b', 'c'], columns=['i', 'j', 阅读全文
posted @ 2018-06-10 20:51 freedomwater 阅读(1757) 评论(0) 推荐(0)
摘要:模式匹配 ~~~python import re match = re.match('Hello[ \t] (. )world','Hello Python world') match.group(1) out:'Python' ~~~ ~~~python match = re.match('/(. 阅读全文
posted @ 2018-06-08 12:07 freedomwater 阅读(211) 评论(0) 推荐(0)

hljs.initLineNumbersOnLoad(); });