Questions tagged «pyyaml»

10
如何安装适用于Python的yaml软件包?
我有一个使用YAML的Python程序。我尝试使用将其安装在新服务器上pip install yaml,并且返回以下内容: $ sudo pip install yaml Downloading/unpacking yaml Could not find any downloads that satisfy the requirement yaml No distributions at all found for yaml Storing complete log in /home/pa/.pip/pip.log 如何安装适用于Python的yaml软件包?我正在运行Python 2.7。(作业系统:Debian Wheezy)
346 python  python-2.7  yaml  pip  pyyaml 



5
pyyaml:不带标签的转储
我有 >>> import yaml >>> yaml.dump(u'abc') "!!python/unicode 'abc'\n" 但是我想要 >>> import yaml >>> yaml.dump(u'abc', magic='something') 'abc\n' 什么魔术参数强制不加标签?
71 python  yaml  pyyaml 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.