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

请问这个名字为 D 的方法是什么?

  •  
  •   saximi · 2017-09-29 23:03:27 +08:00 · 2473 次点击
    这是一个创建于 2408 天前的主题,其中的信息可能已经有所发展或是发生改变。

    看一本书中写了以下的命令,请问 D()这个方法是 python 中某个包所带的方法么?

    url='http://example.webscraping.com/ajax/search.json?page=0&page_size=10&search_term=' json.loads(D(url))['num_pages'] 0

    4 条回复    2017-09-30 23:44:45 +08:00
    xfspace
        1
    xfspace  
       2017-09-29 23:24:39 +08:00 via Android
    63 页。
    D = Downloader()
    Chyroc
        2
    Chyroc  
       2017-09-30 10:15:57 +08:00
    想起了我 thinkphp 里面几个一个字母的方法
    Chyroc
        3
    Chyroc  
       2017-09-30 10:16:22 +08:00
    擦。。。。多了一个我字
    saximi
        4
    saximi  
    OP
       2017-09-30 23:44:45 +08:00
    @xfspace 哈哈,万分感谢,我看书不认真,看了后面忘了前面!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1144 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:46 · PVG 01:46 · LAX 10:46 · JFK 13:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.