当前位置:首页 » 编程语言 » 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