以下代码给出了此错误"令牌错误:多行语句中的EOF".这个错误是什么?我该如何解决?
import easygui
import time
namegui = easygui.enterbox(msg='Enter your name:', title='Name query', default='Gian')
situationgui = easygui.enterbox(msg='Please enter your situation:', title='Thought Log(Situation)')
thoughtsgui = easygui.enterbox(msg='Please enter your thoughts:', title='Thought Log(Thoughts')
emotionsgui = easygui.enterbox(msg='Please enter your emotions: \n Sad, Mad, Hurt, Depressed, Anxious, Tense, etc.', title='Thought Log(Emotions')
behaviorgui = easygui.enterbox(msg='Please enter your behavior:', title='Thought Log(Behavior')
thinking_trapsgui = easygui.enterbox(msg='Please identify your thinking traps: \n \n'
'FORTUNE-TELLING: This occurs when we predict that things will turn out badly. However, we cannot predict the future …Run Code Online (Sandbox Code Playgroud) 当我在Aptana Studio 3中运行以下代码时,在运行OS X 10.6(Snowleopard)的iMac上构建:3.0.9.201202141038,出现以下错误。
import webbrowser
webbrowser.open('http://google.com')
Traceback (most recent call last): File
"/Users/gianl/Documents/Aptana Studio 3 Workspace/Thought Log 3 w
dropbox/src/webbrowser.py", line 1, in <module>
import webbrowser File "/Users/gianl/Documents/Aptana Studio 3 Workspace/Thought Log 3 w dropbox/src/webbrowser.py", line 3, in
<module>
webbrowser.open('http://google.com') AttributeError: 'module' object has no attribute 'open'
Run Code Online (Sandbox Code Playgroud)
当我在终端中没有收到此错误时,为什么会在Aptana中收到此错误?