摘要:
Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"使用一个栈来解决问题。遇到'..'弹栈,遇到'.... 阅读全文
摘要:
数据规整首先将评分数据从 ratings.dat 中读出到一个 DataFrame 里:>>>import pandas as pdIn [2]: import pandas as pdIn [3]: df = pd.read_csv('2014-12-18.csv')In [4]: df.head... 阅读全文