我想用python运行KDB并下载kdb.py公司从
https://bitbucket.org/halotis/qpy/
但是,我在k = 86400000L * 10957
行有一个错误:
# 86400000 is number of milliseconds in a day
# 10957 is days offset between UNIX Epoch and kdb Epoch
k = 86400000L * 10957
语法错误:无效语法
有人帮我吗?
谢谢!你知道吗
你知道吗============================================
Tags:
看起来你在用Python3。去掉后缀“L”,它对整数没有影响。它在Python2.x中有所不同,但现在它出现了语法错误。你知道吗
参见python2文档:https://docs.python.org/2/reference/lexical_analysis.html#integer-and-long-integer-literals
和Python 3文档: https://docs.python.org/3.5/reference/lexical_analysis.html#integer-literals
相关问题 更多 >
编程相关推荐