小编And*_*ase的帖子

在Rails应用程序中实现投票的最佳方式?

如今在Rails网站上实施投票的最佳插件是什么?

我知道的两个是:

  1. vote_fu
  2. acts_as_voteable

ruby-on-rails voting

6
推荐指数
1
解决办法
3424
查看次数

Python没有预期时返回数据

我正在使用praw reddit库从reddit中提取数据,我遇到了一些我不明白为什么它会返回任何数据的代码(在类BaseReddit(完整源代码)中):

def get_content(self, page_url, limit=0, url_data=None, place_holder=None,
                root_field='data', thing_field='children',
                after_field='after'):
    """A generator method to return reddit content from a URL. Starts at
    the initial page_url, and fetches content using the `after` JSON data
    until `limit` entries have been fetched, or the `place_holder` has been
    reached.

    :param page_url: the url to start fetching content from
    :param limit: the maximum number of content entries to fetch. If
        limit <= 0, fetch the default_content_limit for the site. If None, …
Run Code Online (Sandbox Code Playgroud)

python return reddit

4
推荐指数
1
解决办法
236
查看次数

标签 统计

python ×1

reddit ×1

return ×1

ruby-on-rails ×1

voting ×1