V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
saximi
V2EX  ›  Python

VSCODE 下执行 urlopen 方法遇到的怪现象

  •  
  •   saximi · Aug 28, 2017 · 1897 views
    This topic created in 3167 days ago, the information mentioned may be changed or developed.
    from urllib.request import urlopen 
    html = urlopen(" http://www.ccb.com/cn/home/indexv3.html ") 
    print(html.read()) 
    

    上面这几行代码,在 VSCODE 下执行,如果在终端中逐行输入时可以正常输出, 但是如果在 IDE 中按 F5 执行则会自动打开 parse.py 文件,且光标会停留在这一行“ v = SplitResult(scheme, netloc, url, query, fragment)”

    请问这是怎么回事,是 VSCODE 的设置有问题么? 谢谢!

    1 replies    2017-08-29 21:22:59 +08:00
    saximi
        1
    saximi  
    OP
       Aug 29, 2017
    自己顶一下,有人遇到过这种问题么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2430 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 01:10 · PVG 09:10 · LAX 18:10 · JFK 21:10
    ♥ Do have faith in what you're doing.