Closed skysunsun closed 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` ^^语法错误是我没想到的,哈哈哈哈
readme有写,基于至少python3.11才可以运行成功。海象运算符是3.8之后引入的。
`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` ^^语法错误是我没想到的,哈哈哈哈