@
nine a 股啊。while(1):
print(time.localtime())
if(quotation.real('603619')['603619']['now'] ==42):
print("中曼石油")
user.buy('603619', 42.00, int(user.balance['可用金额']/42)) #中曼石油
break
elif (quotation.real('603225')['603225']['now']==38.50):
user.buy('603225', 38.50, int(user.balance['可用金额']/38.50)) #新凤鸣
break
elif (quotation.real('603579')['603579']['now']==68.50):
user.buy('603579', 68.50, int(user.balance['可用金额']/68.50)) #荣泰健康
break
elif (quotation.real('603039')['603039']['now']==67.60):
user.buy('603039', 67.60, int(user.balance['可用金额']/67.60)) #泛微网络
break
elif (quotation.real('603260')['603260']['now']==59.60):
user.buy('603260', 59.60, int(user.balance['可用金额']/59.60)) #合盛硅业
break
elif (quotation.real('600585')['600585']['now']==32.50):
user.buy('600585', 32.50, int(user.balance['可用金额']/32.50)) #海螺水泥
break
elif (quotation.real('601100')['601100']['now']==31.50):
user.buy('601100', 31.50, int(user.balance['可用金额']/31.50)) #恒立液压
break
elif (quotation.real('600031')['600031']['now']==9.15):
user.buy('600031', 9.15, int(user.balance['可用金额']/9.15)) #三一重工
break
elif (quotation.real('600802')['600802']['now']==8.20):
user.buy('600802', 8.20, int(user.balance['可用金额']/8.20)) #福建水泥
break
elif (quotation.real('603607')['603607']['now']==41.70):
user.buy('603607', 41.70, int(user.balance['可用金额']/41.7)) #京华激光
break
elif (quotation.real('603882')['603882']['now']==33):
user.buy('603882', 33.00, int(user.balance['可用金额']/33)) #金域医学
break
elif (quotation.real('600203')['600203']['now']==9.4):
user.buy('600203', 9.40, int(user.balance['可用金额']/9.4)) #福日电子
break
这样看起来非常 low,而且不好维护。