2017qwe
V2EX  ›  问与答

哪里错了

  •  
  •   2017qwe · Sep 19, 2018 · 1053 views
    This topic created in 2792 days ago, the information mentioned may be changed or developed.

    favorite_languages = { 'jen': 'python', 'sarah':'c', 'edward': 'ruby', 'phil': 'python', } for name, language in favorite_languages.items(): print(name.title() + " 's favorite languages is" + languages.title() + ".")

    ClutchBear
        1
    ClutchBear  
       Sep 19, 2018
    https://ww1.sinaimg.cn/large/005YhI8igy1fven2kes1rj310409v0tu

    编辑器自动提示了啊, 有白色下划线的变量写错了,多了一个 s
    2017qwe
        2
    2017qwe  
    OP
       Sep 19, 2018 via Android
    改了还是不行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5640 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 08:40 · PVG 16:40 · LAX 01:40 · JFK 04:40
    ♥ Do have faith in what you're doing.