【发布时间】:2013-04-22 21:50:32
【问题描述】:
我对这个命令有疑问,任何人都可以向我描述它!
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
而我想用来指代特定的文件
PROJECT_PATH = os.path.abspath(os.path.dirname('C://Python27//the dataset//h messages' + '/ham'
和
'C://Python27//the dataset//s messages ' + '/spam'))
不知道能不能这样用?什么是正确的方法 谢谢你
【问题讨论】:
-
第一部分见我之前的回答:Reading from a text file web2py
标签: python python-2.7