凤眼的保 class Stock():
def __init__(self):
self.__no = ""
self.__name = ""
self.previousClosingPrice = 0
self.currentPrice = 0
def creatStock(self,stockInfo):
self.__no = stockInfo[0]
self.__name = stockInfo[1]
self.previousClosingPrice = stockInfo[2]
self.currentPrice = stockInfo[3]
def getStockName(self):
return(self.__name)
def getStockNo(self):
return(self.__no)
def setPreviousClosingPrice(self,price):
self.previousClosingPrice = price
def getPreviousClosingPrice(self):
return(self.previousClosingPrice)
def setCurrentPrice(self,price):
self.currentPrice = price
def getCurrentPrice(self):
return(self.currentPrice)
def getChangePercent(self):
return((self.currentPrice - self.previousClosingPrice)/self.currentPrice)
stock = Stock()
stock.creatStock(["601318","中国平安",63.21,64.39])
print(stock.getStockNo())
print(stock.getStockName())
print(stock.getCurrentPrice())
print(stock.getPreviousClosingPrice())
def __init__(self):
self.__no = ""
self.__name = ""
self.previousClosingPrice = 0
self.currentPrice = 0
def creatStock(self,stockInfo):
self.__no = stockInfo[0]
self.__name = stockInfo[1]
self.previousClosingPrice = stockInfo[2]
self.currentPrice = stockInfo[3]
def getStockName(self):
return(self.__name)
def getStockNo(self):
return(self.__no)
def setPreviousClosingPrice(self,price):
self.previousClosingPrice = price
def getPreviousClosingPrice(self):
return(self.previousClosingPrice)
def setCurrentPrice(self,price):
self.currentPrice = price
def getCurrentPrice(self):
return(self.currentPrice)
def getChangePercent(self):
return((self.currentPrice - self.previousClosingPrice)/self.currentPrice)
stock = Stock()
stock.creatStock(["601318","中国平安",63.21,64.39])
print(stock.getStockNo())
print(stock.getStockName())
print(stock.getCurrentPrice())
print(stock.getPreviousClosingPrice())
头发半秃的山羊 不是的,我在买增强选时的时候,他们客服和我说过一次,必须要上市六个月以后的股票才可以看增强选时,不然由于上市时间不够没有完整的有效数据。另外科创板上的股票六个月以后也是可以用增强选时看的,这个就非常强大了。
最新回答
2026-10-29 18:12:00
2026-10-29 18:11:53
2026-10-29 18:11:45
2026-10-29 18:11:37
2026-10-29 18:11:28
2026-10-29 18:11:12
眼亮如星的伯
钱寒
孙善
笔挺的仙人掌
东罐头
云鬟染银的绍
班晨
须发如银的鸡蛋面
滑葡萄酒
口歪眼斜的诚
眉目清朗的白开水
乜柿子
小蓝眼睛的香烟
头发光溜的书包
邵大熊猫
郁弓箭
狼牙锯齿的拐杖