當前位置:首頁 » 編程語言 » pythonclosing

pythonclosing

發布時間: 2023-05-13 01:10:04

Ⅰ Successfully installed python 2.7卡住了

npm安裝windows-build-tools卡住,停在了Successfully installed Python 2.7

這個問題據說是這個包自身的bug

1、保證你安裝了Visual Studio
2、在資源管理中搜索 %temp% ,window系統按住win按鍵直接搜索就可以
3、在搜索到的文件夾 %temp% 中創建 dd_client_.log 文件,並且填入內容 Closing installer. Return code: 3010.

electron備忘錄:
補充:electron項目需要node的版本與electron有對應關系,實際上是node的NODE_MODULE_VERSION要和electron abi要對應,可以在這個地址查看下 https://nodejs.org/zh-cn/download/releases/

Ⅱ python 設計一個名為Stock的類來表示一個公司的股票

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())

熱點內容
java返回this 發布:2025-10-20 08:28:16 瀏覽:713
製作腳本網站 發布:2025-10-20 08:17:34 瀏覽:977
python中的init方法 發布:2025-10-20 08:17:33 瀏覽:686
圖案密碼什麼意思 發布:2025-10-20 08:16:56 瀏覽:838
怎麼清理微信視頻緩存 發布:2025-10-20 08:12:37 瀏覽:745
c語言編譯器怎麼看執行過程 發布:2025-10-20 08:00:32 瀏覽:1085
郵箱如何填寫發信伺服器 發布:2025-10-20 07:45:27 瀏覽:314
shell腳本入門案例 發布:2025-10-20 07:44:45 瀏覽:194
怎麼上傳照片瀏覽上傳 發布:2025-10-20 07:44:03 瀏覽:882
python股票數據獲取 發布:2025-10-20 07:39:44 瀏覽:840