Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
254 views
in Technique[技术] by (71.8m points)

python - VSCode + Pyton + REPL:多行代码中的错误(VSCode + Pyton + REPL: Error in Multiline Code)

in VSCode I choose "Python:Start REPL" and add 2 lines seperated with CR: "import sys" and "sys.plattform"

(在VSCode中,我选择“ Python:Start REPL”并添加两行以CR分隔:“ import sys”和“ sys.plattform”)

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.plattform
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'sys' has no attribute 'plattform'
>>>

I get an error.

(我得到一个错误。)

I expected that REPL is able to handle multi-line input !

(我希望REPL能够处理多行输入 !)

Is there any setting I have to change?

(我需要更改任何设置吗?)

  ask by limex translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...