我在这里搜索了谷歌!但是没有成功找到解决方案,我真的是使用python的noob但是能够安装与yum分开的python.
现在,我需要重新编译OSQA系统的语言包,但是得到以下消息:
Error: errors happened while running xgettext on __init__.py
xgettext: ./Django-1.2.3/tests/regressiontests/views/__init__.py:1: Unknown encoding "utf8". Proceeding with ASCII instead.
xgettext: Non-ASCII string at ./Django-1.2.3/tests/regressiontests/views/__init__.py:7.
Please specify the source encoding through --from-code or through a comment
as specified in http://www.python.org/peps/pep-0263.html.
Run Code Online (Sandbox Code Playgroud)
我试过,但没有成功解决它,在manage.py文件中设置utf-8编码,但也没有成功.
有人能帮我解决一下吗?:(
谢谢,最好的问候!
这让我疯了.每当我使用chrome(我一直非常喜欢它)时,我会遇到一个奇怪的事情.在其他浏览器和chrome中,如果我提交表单,我希望broswer,当我点击f5时,让我重新发送数据.如果我然后单击地址栏并单击输入它不会询问我有关发送数据的情况,这也是可以的.问题是,在我点击地址栏+输入东西之后,在其他所有浏览器下但是我可以点击f5,它只会重新加载页面.在chrome下它重新提交.它像Chrome一样记得我曾经提交数据并且永远记得它.
Chrome版本:16.0.912.77
希望我有意义!
我遭受了奇怪的pip行为.调用
pip install git+https://github.com/username/repo
Run Code Online (Sandbox Code Playgroud)
通常可以工作,但在某些软件包上,它会以异常方式失败
Downloading/unpacking git+git://github.com/artscoop/django-inplaceedit
Cloning git://github.com/artscoop/django-inplaceedit to /tmp/pip-rl1_7G-build
Running setup.py egg_info for package from git+git://github.com/artscoop/django-inplaceedit
Installing collected packages: django-inplaceedit
Running setup.py install for django-inplaceedit
error: Error: setup script specifies an absolute path:
/tmp/pip-rl1_7G-build/AUTHORS.rst
setup() arguments must *always* be /-separated paths relative to the
setup.py directory, *never* absolute paths.
Complete output from command /home/steve/virtualenv/project/bin/python -c "import setuptools;__file__='/tmp/pip-rl1_7G-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-vVDBRe-record/install-record.txt --single-version-externally-managed --install-headers /home/steve/virtualenv/project/include/site/python2.7:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/inplaceeditform …Run Code Online (Sandbox Code Playgroud) 你如何datetime.timedelta在python中实例化一个秒?例如,43880.6543
编辑(根据OP的说明):我有一张Excel工作表,其中一个单元格显示43880.6543(当格式为Generic时)而不是日期.如何将此值转换为datetimepython中的值?