上一页 1 2 3 4 5 6 7 8 9 10 ··· 40 下一页
摘要: 使用flask 构造服务的方法有: (1)利用路由实现 (2)利用flask的扩展插件实现 利用路由实现REST API 1.GET 获取资源 获取列表 from flask import Flask,request,abort,jsonify app = Flask(__name__) tasks 阅读全文
posted @ 2020-11-24 00:03 慕尘 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Flask是一个基于Python开发的微型web框架 使用Flask实现简单的 api 安装 pip install flask flask版本 import flask print(flask.__version__) $ python test.py1.1.2 eg: from flask im 阅读全文
posted @ 2020-11-24 00:02 慕尘 阅读(2790) 评论(0) 推荐(0) 编辑
摘要: Buffer 是Nodejs提供的可以直接操作二进制数据的类 从 Buffer 的定义Buffer继承自 Uint8Array Uint8Array 则是8位无符号整型数组(一段以8bit数据为单位的无符号整型数组),是 ArrayBuffer 的一种 1.string 转 buffer var b 阅读全文
posted @ 2020-11-13 22:50 慕尘 阅读(381) 评论(0) 推荐(0) 编辑
摘要: Buffer 是Nodejs提供的可以直接操作二进制数据的类 ArrayBuffer 是符合ES标准的 用来表示通用的、固定长度的原始二进制数据缓冲区,是一个字节数组,可读但不可直接写 注: ArrayBuffer对象并没有提供任何读写内存的方法,但允许在其上方建立DataView,从而插入与读取内 阅读全文
posted @ 2020-11-13 17:23 慕尘 阅读(5130) 评论(0) 推荐(1) 编辑
摘要: 接收的数据为buffer,每次数据放入到arrRs中,现在想将多个ArrayBuffer合并成一个ArrayBuffer 前端可以借助 Blob,FileReader.readAsArrayBuffer var blob = new Blob(arrRs, { type: 'application/ 阅读全文
posted @ 2020-11-13 16:18 慕尘 阅读(3724) 评论(0) 推荐(0) 编辑
摘要: 通过API:doc.Export()方法导出dwg using Autodesk.Revit; using Autodesk.Revit.DB; using Autodesk.RevitAddIns; using System; using System.Collections.Generic; u 阅读全文
posted @ 2020-11-10 14:33 慕尘 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 不启动Revit,读取rvt文件里的墙 1.使用vs2015新建控制台应用程序 2.在项目中引入 RevitNet.dll,Revit.dll 3.代码实现 using Autodesk.Revit; using Autodesk.Revit.DB; using System; using Syst 阅读全文
posted @ 2020-11-05 14:57 慕尘 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: 获取已安装的Revit版本与路径 1.使用vs2015新建控制台应用程序 2.在项目中引入 RevitAddInUtility.dll 3.实现代码 using Autodesk.RevitAddIns; using System; using System.Collections.Generic; 阅读全文
posted @ 2020-11-04 13:14 慕尘 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 使用vs2015判断rvt文件的revit版本 using System; using System.Text; using System.IO; using System.Text.RegularExpressions; namespace ReadRvt { class Program { st 阅读全文
posted @ 2020-11-04 12:50 慕尘 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1.安装mysql 2.安装mysql ODBC数据源驱动 https://dev.mysql.com/downloads/connector/odbc/ 3.打开revit2018 打开revit模型 文件——》导出——》ODBC数据库 新建 选择MySQL ODBC 8.0 ANSI Drive 阅读全文
posted @ 2020-10-27 14:54 慕尘 阅读(557) 评论(0) 推荐(0) 编辑
摘要: tushare是一个免费、开源的python财经数据接口包 安装 pip install tushare 还需要lxml pip install lxml 查看当前版本test.py import tushare print(tushare.__version__) >python test.py1 阅读全文
posted @ 2020-10-20 22:54 慕尘 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 一个免费、开源的证券数据服务平台 官网 http://baostock.com 安装 pip install baostock -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn 阅读全文
posted @ 2020-10-20 22:48 慕尘 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: mpl_finance是python中可以用来画出蜡烛图、线图的分析工具 安装 pip install mplfinance --upgrade --user -i https://pypi.tuna.tsinghua.edu.cn/simple 单个股票K线图配置颜色 import numpy a 阅读全文
posted @ 2020-10-20 21:27 慕尘 阅读(1988) 评论(0) 推荐(0) 编辑
摘要: pyecharts是一款将python与echarts结合的强大的数据可视化工具 官网 https://pyecharts.org pyechats里使用 Kline 画 K 线图 示例 from pyecharts import Kline v1 = [[2295.35, 2346.5, 2295 阅读全文
posted @ 2020-10-20 21:25 慕尘 阅读(7066) 评论(0) 推荐(0) 编辑
摘要: 使用tushare,test.py import tushare print(tushare.__version__) 报错 Traceback (most recent call last): File "test.py", line 1, in <module> import tushare F 阅读全文
posted @ 2020-10-20 09:23 慕尘 阅读(2748) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 40 下一页