<i id='yvh4K'><tr id='yvh4K'><dt id='yvh4K'><q id='yvh4K'><span id='yvh4K'><b id='yvh4K'><form id='yvh4K'><ins id='yvh4K'></ins><ul id='yvh4K'></ul><sub id='yvh4K'></sub></form><legend id='yvh4K'></legend><bdo id='yvh4K'><pre id='yvh4K'><center id='yvh4K'></center></pre></bdo></b><th id='yvh4K'></th></span></q></dt></tr></i><div id='yvh4K'><tfoot id='yvh4K'></tfoot><dl id='yvh4K'><fieldset id='yvh4K'></fieldset></dl></div>

      <legend id='yvh4K'><style id='yvh4K'><dir id='yvh4K'><q id='yvh4K'></q></dir></style></legend>
    1. <small id='yvh4K'></small><noframes id='yvh4K'>

      • <bdo id='yvh4K'></bdo><ul id='yvh4K'></ul>

      <tfoot id='yvh4K'></tfoot>
      1. pyyaml:不带标签的倾销

        时间:2023-09-13
        • <legend id='pXi35'><style id='pXi35'><dir id='pXi35'><q id='pXi35'></q></dir></style></legend>
          <i id='pXi35'><tr id='pXi35'><dt id='pXi35'><q id='pXi35'><span id='pXi35'><b id='pXi35'><form id='pXi35'><ins id='pXi35'></ins><ul id='pXi35'></ul><sub id='pXi35'></sub></form><legend id='pXi35'></legend><bdo id='pXi35'><pre id='pXi35'><center id='pXi35'></center></pre></bdo></b><th id='pXi35'></th></span></q></dt></tr></i><div id='pXi35'><tfoot id='pXi35'></tfoot><dl id='pXi35'><fieldset id='pXi35'></fieldset></dl></div>

          • <bdo id='pXi35'></bdo><ul id='pXi35'></ul>
                1. <tfoot id='pXi35'></tfoot>

                  <small id='pXi35'></small><noframes id='pXi35'>

                    <tbody id='pXi35'></tbody>
                  本文介绍了pyyaml:不带标签的倾销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有

                  >>> import yaml
                  >>> yaml.dump(u'abc')
                  "!!python/unicode 'abc'
                  "
                  

                  但我想要

                  >>> import yaml
                  >>> yaml.dump(u'abc', magic='something')
                  'abc
                  '
                  

                  什么魔法参数强制不标记?

                  What magic param forces no tagging?

                  推荐答案

                  您可以使用 safe_dump 代替 dump.请记住,那时它将无法表示任意 Python 对象.此外,当您 load YAML 时,您将获得一个 str 对象而不是 unicode.

                  You can use safe_dump instead of dump. Just keep in mind that it won't be able to represent arbitrary Python objects then. Also, when you load the YAML, you will get a str object instead of unicode.

                  这篇关于pyyaml:不带标签的倾销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在 Google Build 期间在 app.yaml 文件中添加环境变量 下一篇:Python中的Yaml合并

                  相关文章

                  最新文章

                      <i id='InDN3'><tr id='InDN3'><dt id='InDN3'><q id='InDN3'><span id='InDN3'><b id='InDN3'><form id='InDN3'><ins id='InDN3'></ins><ul id='InDN3'></ul><sub id='InDN3'></sub></form><legend id='InDN3'></legend><bdo id='InDN3'><pre id='InDN3'><center id='InDN3'></center></pre></bdo></b><th id='InDN3'></th></span></q></dt></tr></i><div id='InDN3'><tfoot id='InDN3'></tfoot><dl id='InDN3'><fieldset id='InDN3'></fieldset></dl></div>

                    1. <legend id='InDN3'><style id='InDN3'><dir id='InDN3'><q id='InDN3'></q></dir></style></legend>

                    2. <small id='InDN3'></small><noframes id='InDN3'>

                    3. <tfoot id='InDN3'></tfoot>
                        <bdo id='InDN3'></bdo><ul id='InDN3'></ul>