V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2017-08-28 22:35:19 +08:00 · 1511 次点击
    这是一个创建于 2438 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 条回复    2017-08-29 21:22:59 +08:00
    saximi
        1
    saximi  
    OP
       2017-08-29 21:22:59 +08:00
    自己顶一下,有人遇到过这种问题么?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2426 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 14:17 · PVG 22:17 · LAX 07:17 · JFK 10:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.