随笔分类 -  python

python
摘要:Python开发的坦克大战游戏 python开发的坦克大战游戏 import pygame from pygame.sprite import Sprite import sys import time import random SCREEN_WIDTH = 780 SCREEN_HEIGHT = 阅读全文
posted @ 2020-06-01 15:02 程式交易 阅读(379) 评论(0) 推荐(0)
摘要:项目简价 argparse 作为 Python 内置的标准库,提供了较为简单的方式来编写命令行接口。当你在程序中定义需要哪些参数,argparse 便会从 sys.argv 中获取命令行输入进行解析,对正确或非法输入做出响应,也可以自动生成帮助信息和使用说明。 项目地址: https://githu 阅读全文
posted @ 2020-05-21 13:50 程式交易 阅读(164) 评论(0) 推荐(0)
摘要:参考: https://www.cnblogs.com/zhaof/p/10182903.html 阅读全文
posted @ 2020-04-28 21:42 程式交易 阅读(145) 评论(0) 推荐(0)
摘要:#方式一 直接连接 #!/usr/bin/python3 # a sample to use mysql-connector for python3 # see details from http://dev.mysql.com/doc/connector-python/en/index.html 阅读全文
posted @ 2020-04-26 00:08 程式交易 阅读(200) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/tomorrow13210073213/article/details/72809762 阅读全文
posted @ 2020-04-25 23:59 程式交易 阅读(160) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/ITBigGod/article/details/103134635 阅读全文
posted @ 2020-04-25 23:57 程式交易 阅读(466) 评论(0) 推荐(0)
摘要:dataset对于操作JSON文件、NoSQL非常好用。 官方文档:http://dataset.readthedocs.io/en/latest/ 补充: 连接mysql数据库: db = dataset.connect('mysql://username:password@10.10.10.10 阅读全文
posted @ 2020-04-25 23:54 程式交易 阅读(1313) 评论(0) 推荐(0)
摘要:# encoding: utf8 #部分网站api数据有bug,这个bug问题不是自身程序的问题,而是第三方公司股票的问题 __author__ = 'nooper' import re from math import ceil import datetime from httpGet impor 阅读全文
posted @ 2020-04-25 23:14 程式交易 阅读(6334) 评论(1) 推荐(0)
摘要:KLine #!/usr/bin/python # -*- coding: UTF-8 -*- import pandas as pd import matplotlib.pyplot as plt import matplotlib.mlab as mlab import mpl_finance 阅读全文
posted @ 2020-04-25 07:39 程式交易 阅读(619) 评论(0) 推荐(0)
摘要:参考 https://www.runoob.com/python/python-mysql.html https://blog.csdn.net/nixonwuying/article/details/87184128 安装插件 https://blog.csdn.net/peach_orange/ 阅读全文
posted @ 2020-04-25 07:33 程式交易 阅读(217) 评论(0) 推荐(0)
摘要:参考: https://blog.csdn.net/menghuanzhiming/article/details/77574135 https://blog.csdn.net/menghuanzhiming/article/details/77574135 阅读全文
posted @ 2020-04-22 10:33 程式交易 阅读(310) 评论(0) 推荐(0)
摘要:参考: https://blog.csdn.net/sqy941013/article/details/80536181 阅读全文
posted @ 2020-04-22 10:29 程式交易 阅读(994) 评论(0) 推荐(0)
摘要:.vscode 2019-09-05 8 months ago 0001.两数之和 2020-01-25 3 months ago 0002.两数相加 2019-09-08 8 months ago 0003.无重复字符的最长子串 2019-09-08 8 months ago 0004.寻找两个有 阅读全文
posted @ 2020-04-22 10:27 程式交易 阅读(796) 评论(0) 推荐(0)
摘要:1.能够获得股票部分金融数据 2.能够获得日线,周线,60分钟数据线,月线,30分钟数据。### 3.能够获得历史数据,但是部分各大网站的股票的历史数据有很大的误差,情谨慎鉴别 源码地址:https://github.com/nooperpudd/chinastock/blob/master/sto 阅读全文
posted @ 2020-04-22 09:47 程式交易 阅读(402) 评论(0) 推荐(0)
摘要:1.接口 http://qt.gtimg.cn/q=sz000001 v_sz000001="51~平安银行~000001~9.52~9.48~9.50~671452~320552~350900~9.51~2107~9.50~4457~9.49~2416~9.48~1292~9.47~864~9.5 阅读全文
posted @ 2020-04-22 09:41 程式交易 阅读(4867) 评论(0) 推荐(0)
摘要:import requests # txt文件,存储股票代码,一行一个代码,小写字母 f = open(r"G:\pycharm_code\stock.txt") symbols = [line.strip() for line in f.readlines()] f.close() def get 阅读全文
posted @ 2020-04-21 21:30 程式交易 阅读(277) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/yunerlalala/p/6341050.html 阅读全文
posted @ 2020-04-19 00:31 程式交易 阅读(290) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/txw1958/archive/2012/07/28/python3-stock.html 阅读全文
posted @ 2020-04-19 00:30 程式交易 阅读(1064) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/yunerlalala/p/6295500.html 阅读全文
posted @ 2020-04-19 00:27 程式交易 阅读(347) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/diaosir/p/6289571.html 阅读全文
posted @ 2020-04-19 00:26 程式交易 阅读(693) 评论(0) 推荐(0)