摘要: 奇怪了,我的《python基础教程第二版》里面写的是sys.path.expanduser('~/python')使用后会有如下报错Traceback (most recent call last): File "./info.py", line 6, in sys.path.expanduser('~/desktop/')AttributeError: 'list' object has no attribute 'expanduser'后来查了一下,发现原来这不是正确的,应该使用下面这个os.path.ex 阅读全文
posted @ 2013-09-13 19:32 花瓣奶牛 阅读(7659) 评论(0) 推荐(0)