V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ray1980
V2EX  ›  Project Picky

Project Picky 的 tweets最上面的@地址不对

  •  
  •   ray1980 · 2010-07-20 16:36:51 +08:00 · 4438 次点击
    这是一个创建于 5021 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我的是@ray1980
    链接是@raymend
    5 条回复    1970-01-01 08:00:00 +08:00
    cnleoyang
        1
    cnleoyang  
       2010-07-22 15:04:11 +08:00
    是的,代码这里写错了:

    main.py ln:230
    template_values['twitter_account'] = tweets[0].user.name;
    cnleoyang
        2
    cnleoyang  
       2010-07-22 15:07:04 +08:00
    或许作者写代码需要在php和python间切换,部分python代码语句结尾是分号。
    Fann
        3
    Fann  
       2010-07-22 15:33:03 +08:00
    template_values['twitter_account'] = tweets[0].user.name;
    =>
    template_values['twitter_account'] = tweets[0].user.screen_name;
    cnleoyang
        4
    cnleoyang  
       2010-07-22 16:02:51 +08:00
    template_values['twitter_account'] = twitter_account
    Fann
        5
    Fann  
       2010-07-22 17:15:46 +08:00
    @cnleoyang 省力。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   986 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:11 · PVG 06:11 · LAX 15:11 · JFK 18:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.