给出股票价格的压力位是17,支撑位是15,我们的策略是突破压力位做买入(prin

题库2022-08-02  43

问题 给出股票价格的压力位是17,支撑位是15,我们的策略是突破压力位做买入(print('buy')),跌破支撑位做卖出(print('sell')),否则不做操作。请写出判断的逻辑语句。

选项

答案

解析 price = 16if price>17.0:    print('buy')elif price>15.0:    print('hold')
else:    print('sell')
转载请注明原文地址:https://www.tihaiku.com/congyezige/2425256.html

最新回复(0)