上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 教大家用Python做一个任何视频都能看的软件 前言 嗨喽,大家好呀~这里是爱看美女的茜茜呐 又到了学Python时刻~ 所以特地给大家献上如何用Python来开发一款看视频不需要VIP的软件~ 如果想发给朋友用的话,咱们在打包成exe可执行软件,这样小伙伴也能一起用了~ 效果展示 这是本次要写的界 阅读全文
posted @ 2022-10-13 09:56 shclbear 阅读(209) 评论(0) 推荐(0)
摘要: 前端 <script> $('#id_edit').click(function () { $.ajax({ url:'/set_password/', type:'post', data:{ 'old_password':$('#id_old_password').val(), 'new_pass 阅读全文
posted @ 2022-10-12 20:54 shclbear 阅读(48) 评论(0) 推荐(0)
摘要: GitHub地址:https://github.com/shizhuolin/PyCTP 这是程序化期货交易上期ctp接口版本.将其包装为python版本. 支持python3 编译需求:vs2010/gcc 编译方法 python setup.py build PyCTP 编译方法 开发环境:wi 阅读全文
posted @ 2022-09-19 10:44 shclbear 阅读(587) 评论(0) 推荐(0)
摘要: 题目比较小众,先介绍一下CTP。 综合交易平台CTP(Comprehensive Transaction Platform)是由上海期货信息技术有限公司(上海期货交易所的全资子公司)开发的期货交易平台,CTP平台以"新一代交易所系统"的核心技术为基础,稳定、高速、开放式接口,适合程序化交易软件运用和 阅读全文
posted @ 2022-09-19 10:14 shclbear 阅读(1049) 评论(0) 推荐(0)
摘要: 【前言】对上海期货交易平台CTP接口的一个学习总结.(参考vn.py官方文档) 一、引言 目前本人所在的公司一共有三款平台,分别基于C++, C#和Python。其中C#和Python平台都是由交易员开发;C++平台则是由专职IT团队作为一个通用平台开发,内部组件进行了封装(交易员不可见),对外提供 阅读全文
posted @ 2022-09-19 10:12 shclbear 阅读(1384) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-09-16 23:17 shclbear 阅读(65) 评论(0) 推荐(0)
摘要: 如提取第1行,第2列的值: df.iloc[[0],[1]] 则会返回一个df,即有字段名和行号。 df.iloc[[0],[1]].values 返回的值会是列表,而且是嵌套列表: [[值]] 因此,正确的写法是: df.iloc[[0],[1]].values[0][0] 补充:pandas取出 阅读全文
posted @ 2022-09-16 10:58 shclbear 阅读(298) 评论(0) 推荐(0)
摘要: # df_x = df_x.drop(2,axis=0) # 找到小计所在的行标签 也是可以的df_x =df_x[~df_x['商品名称'].isin(['小计'])] # 找小计的行 取反就是没有小计的行df_x.loc[df_x.index[-1]] = df_x.loc[df_x.index 阅读全文
posted @ 2022-09-16 00:06 shclbear 阅读(1269) 评论(0) 推荐(0)
摘要: 引入包 import pandas as pd from openpyxl.utils import get_column_letter from pandas import ExcelWriter import numpy as np 自适应函数 def to_excel_auto_column_ 阅读全文
posted @ 2022-09-15 23:21 shclbear 阅读(2617) 评论(1) 推荐(0)
摘要: file_path = '保存的文件路径'sheet_name = '数据在Excel的sheet名' with pd.ExcelWriter(file_path, engine='xlsxwriter') as writer: #数据传给Excel的writer result.to_excel(w 阅读全文
posted @ 2022-09-15 22:57 shclbear 阅读(460) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页