摘要: import matplotlib.pyplot as plt import math import numpy as np E=np.linspace(0,100,100) Kmax=100 Lmax=80 a=0.1 b=0.2 K=Kmax/(1+math.e**(-a*E)) L=Lmax/(1+math.e**(-a*E)) y =(606465.66,561999.83,5120... 阅读全文
posted @ 2019-01-28 22:14 洞幺先生 阅读(189) 评论(0) 推荐(0)
摘要: 服务指南、子父标签、采集有三个以上属性的a标签: 中财主页 from urllib.request import urlopenfrom bs4 import BeautifulSoupimport re html=urlopen("http://www.cufe.edu.cn/index.htm" 阅读全文
posted @ 2018-12-25 20:55 洞幺先生 阅读(149) 评论(0) 推荐(0)
摘要: 15-1 匹配字符串“bat”,“bit”,“but”,“hat”,“hit“或”hut“ 15-6网址匹配 15-11匹配电子邮件地址 15-14匹配月份 15-15匹配信用卡号 15-17统计星期中每一天出现的次数 15-20提取每行中完整的电子邮件地址 15-21只提取时间戳中字段的月份 15 阅读全文
posted @ 2018-12-11 21:55 洞幺先生 阅读(137) 评论(0) 推荐(0)
摘要: getjpg.py 阅读全文
posted @ 2018-12-02 22:56 洞幺先生 阅读(144) 评论(0) 推荐(0)
摘要: information.py dic={} def load(): f=open('dict.txt','w') f.writelines(str(dic)) f.close def read(): f=open('dict.txt') global dic dic=eval(f.read()) f.close() return ... 阅读全文
posted @ 2018-11-27 21:12 洞幺先生 阅读(156) 评论(0) 推荐(0)
摘要: cardrun cardrun1 cardrun2 9-12 阅读全文
posted @ 2018-11-04 20:35 洞幺先生 阅读(153) 评论(0) 推荐(0)
摘要: import os f=open("romantic.docx","r",errors ='ignore')#'gbk' codec can't decode byte 0xc2 wordlen=len([word for line in f for word in line.split()]) f.seek(0) wordlensum=sum(len(word) for line in f... 阅读全文
posted @ 2018-10-23 20:36 洞幺先生 阅读(123) 评论(0) 推荐(0)
摘要: import random#随机数模板 A=set()#声明两个集合存放生成的随机数 B=set() for step in range(random.randint(1,10)):#决定有几个随机数 A.add(random.randint(0,9))#决定这几个随机数是什么 for step in range(random.randint(1,10)): B.add(r... 阅读全文
posted @ 2018-10-23 20:33 洞幺先生 阅读(78) 评论(0) 推荐(0)
摘要: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow 阅读全文
posted @ 2018-10-18 23:38 洞幺先生 阅读(117) 评论(0) 推荐(0)