【问题标题】:Syntax error during updating value of dictionary with the text使用文本更新字典值期间的语法错误
【发布时间】:2020-05-28 16:36:06
【问题描述】:

我收到无效的语法错误:

【问题讨论】:

标签: python dictionary text


【解决方案1】:

https://www.programiz.com/python-programming/methods/dictionary/update

update() 参数

update() 方法采用字典或键/值对(通常是元组)的可迭代对象。

如果在没有传递参数的情况下调用 update(),则字典保持不变。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-20
    • 2020-11-23
    • 1970-01-01
    • 2019-01-17
    • 1970-01-01
    • 2019-12-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多