You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
370 B
370 B
Python语言从数据库中读取字节流程序并解码还原示例程序在ReadTickFromDB.py中。
该函数需要pymssql、gzip、google.protobuf<span class="ambiguous-code-point tooltip" data-content="( [U+FF08] is confusable with ( [U+0028]"><span class="char">(</span></span>可用pip install protobuf安装<span class="ambiguous-code-point tooltip" data-content=") [U+FF09] is confusable with ) [U+0029]"><span class="char">)</span></span>三个外部依赖库需要在运行程序。
成功读取后,每个标的会读出并解析成一个结构体数组的数据结构,可以对于该数据进行进一步操作。