Vespa314 / chan.py

开放式的缠论python实现框架,支持形态学/动力学买卖点分析计算,多级别K线联立,区间套策略,可视化绘图,多种数据接入,策略开发,交易系统对接;
MIT License
796 stars 288 forks source link

语法错误 #13

Closed skysunsun closed 1 year ago

skysunsun commented 1 year ago

`Traceback (most recent call last):

File "D:\Anaconda\lib\site-packages\IPython\core\interactiveshell.py", line 2963, in run_code exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 1, in from Chan import CChan

File "D:\chan.py\Chan.py", line 12, in from KLine.KLine_List import CKLine_List

File "D:\chan.py\KLine\KLine_List.py", line 5, in from BuySellPoint.BSPointList import CBSPointList

File "D:\chan.py\BuySellPoint\BSPointList.py", line 8, in from Seg.SegListComm import CSegListComm

File "D:\chan.py\Seg\SegListComm.py", line 92 if peak_bi := FindPeakBi(bi_lst[last_seg_end_bi.idx+3:], ishigh=True): ^ SyntaxError: invalid syntax` ^^语法错误是我没想到的,哈哈哈哈

Vespa314 commented 1 year ago

readme有写,基于至少python3.11才可以运行成功。海象运算符是3.8之后引入的。