【问题标题】:Python Schematics model conversion error rouge fieldPython Schematics模型转换错误胭脂字段
【发布时间】:2017-02-06 23:41:26
【问题描述】:

请帮帮我,我有一个这样的模型,我想导入,

cricket:
 players:
  1 : Mike
  2 : Mark
  3 : Miller
 scores:
  12: 222
  13: 255
  15: 555

使用DictType(ModelType(CricModel), default=None, deserialize_from=('cricket', 'params')) 时会抛出错误。

我做得对吗

【问题讨论】:

    标签: python python-2.7 python-3.x pip pycharm


    【解决方案1】:

    需要使用 ModelType(ModelName) 而不是 DictType

    【讨论】:

      猜你喜欢
      • 2017-10-14
      • 2016-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多