Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

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

Pasting multiple lines in MacOs Python shell returns SyntaxError

I had to reinstall my MacBook. I downloaded python from brew.

When I copy and paste code in the python shell from brew, the text is highlighted and the code not executed.

When I use the stock python from my MacBook there is no problem.

Please check this short video: https://youtu.be/CrTzBpVdcVM

I'm not the only one with this problem, however no solutions had been found yet:

SyntaxError when pasting multiple lines in Python

https://python-forum.io/Thread-How-to-paste-several-lines-of-codes-to-the-Python-console

https://github.com/Homebrew/discussions/discussions/428


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

1 Answer

0 votes
by (71.8m points)

I've had some issues with copying/pasting from brew to python shell. I am curious to hear if the issue persists when you manually type it? Is this feasible to try?

thanks, L


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...