下面的代码行打开了一个名为document.txt的文档,它看起来有点像这样。3 2 8 9with open('document.txt','r') as f: farray = [int(i) for i in line.split(" ")]但我得到了以下错误。
ValueError: invalid literal for int() with base
当我在bash中运行echo $PYTHONPATH时,我收到一个空行,然后再次出现提示。我的.bash_profile是这样的:# The orginal version is saved in .bash_profile.pysavePATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"我运