上一页 1 2 3 4 5 6 ··· 18 下一页
摘要: #获取数据货币行情 def get_szhb(): c = ['id','open','close','low','high','amount','vol','count'] df = pd.DataFrame(columns=c) url = 'https://api.huobi.pro/mark 阅读全文
posted @ 2020-08-26 12:55 疯陈演义 阅读(342) 评论(0) 推荐(0) 编辑
摘要: xuan=[] #构建自已的股票池 def build_my_stock(): #获取股票列表 df = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date 阅读全文
posted @ 2020-06-14 20:44 疯陈演义 阅读(359) 评论(0) 推荐(0) 编辑
摘要: def get_xueqiu_stock(): headers = {'X-Requested-With': 'XMLHttpRequest', 'Referer': 'http://xueqiu.com/p/ZH010389', 'User-Agent': 'Mozilla/5.0 (Window 阅读全文
posted @ 2020-06-11 18:58 疯陈演义 阅读(820) 评论(0) 推荐(0) 编辑
摘要: from tkinter import * from tkinter import ttk import time def manu_increment(*args): for i in range(100): p1["value"] = i+1 root.update() time.sleep(0 阅读全文
posted @ 2020-05-30 09:54 疯陈演义 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: 32位CPU所含有的寄存器# 4个数据寄存器(EAX、EBX、ECX和EDX) 2个变址和指针寄存器(ESI和EDI) 2个指针寄存器(ESP和EBP) 6个段寄存器(ES、CS、SS、DS、FS和GS) 1个指令指针寄存器(EIP) 1个标志寄存器(EFlags) 数据寄存器# 数据寄存器主要用来 阅读全文
posted @ 2020-03-15 09:52 疯陈演义 阅读(1378) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-01-07 19:49 疯陈演义 阅读(2) 评论(0) 推荐(0) 编辑
摘要: from sklearn.datasets import make_blobs, load_iris import matplotlib.pyplot as plt # 支持中文 plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签 plt.rcParams['axes.unicode_minus'] = False # 用来正常显示负 阅读全文
posted @ 2020-01-06 23:05 疯陈演义 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 解决: 导入gzip解压方法 import urllib.request from io import BytesIO import gzip url = 'http://www.mzitu.com' response = urllib.request.urlopen(url) html = response.read() print(html) buff = BytesIO(html) f ... 阅读全文
posted @ 2019-12-16 13:03 疯陈演义 阅读(539) 评论(0) 推荐(0) 编辑
摘要: import urllib.request import re codeUrl = 'https://hq.gucheng.com/gpdmylb.html' #获取股票代码 def codeTolist(): codeList = [] html = urllib.request.urlopen(codeUrl).read() html = html.decode(... 阅读全文
posted @ 2019-12-14 20:44 疯陈演义 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: n=int(input("\n请输入数字:\n")) intlist=[[0 for i in range(n)] for j in range(n)] #列表推导式,生成一个n行n列的二维列表 for i in range(n): #遍历列表,如果是周边元素,或者每行的第一个元素为1 for j in range(i+1): if i==j or j==0: intlist[i][j]=1 el 阅读全文
posted @ 2019-12-14 13:26 疯陈演义 阅读(245) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 18 下一页