摘要: 神经网络 import pandas as pd from keras.models import Sequential from keras.layers.core import Dense, Activation import numpy as np # 参数初始化 inputfile = 'D 阅读全文
posted @ 2022-03-30 12:17 ghhzaq 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 数值微分与数值积分 2 线性方程组求解 3 非线性方程求解与函数极值计算 4 常微分方程数值求解 5 符号对象 6 符号微积分 7 级数 8 符号方程求解 9学习进度 阅读全文
posted @ 2021-10-24 20:44 ghhzaq 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 1、matlab数值类型 : 整型、浮点型、复型; 2、矩阵表示: 产生行矩阵 :linspace(a,b,n) 改变矩阵的形状 :reshape 特殊矩阵: 矩阵的变换 矩阵的求值 3、绘图 3.1 plot 、fplot绘制二维曲线,plot3、fplot3绘制三维曲线 3.2 辅助图形的操作 阅读全文
posted @ 2021-10-08 14:12 ghhzaq 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 个人PSP表格 java代码 import java.awt.Color; import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java. 阅读全文
posted @ 2021-09-27 22:29 ghhzaq 阅读(60) 评论(0) 推荐(0) 编辑
摘要: excel转为csv文件: 将上面的csv文件转为html文件: file:///C:/Users/%E5%93%88%E5%93%88/AppData/Local/kingsoft/WPS%20Cloud%20Files/userdata/qing/filecache/%E3%80%82%E3%8 阅读全文
posted @ 2020-05-24 16:34 ghhzaq 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1 import requests 2 for i in range(20): 3 r=requests.get("http://www.baidu.com") 4 s=r.text 5 f=r.content 6 d1=len(r.text) 7 d2=len(r.content) 8 print 阅读全文
posted @ 2020-05-13 16:38 ghhzaq 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1、numpy ,matplotlib的笔记: 2、python123成绩 1 import numpy as np 2 import matplotlib.pyplot as plt 3 4 # 中文和负号的正常显示 5 plt.rcParams['font.sans-serif'] = 'Mic 阅读全文
posted @ 2020-05-06 19:35 ghhzaq 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1.GIF文件图像提取: 对一个GIF格式动态文件,提取其中各帧图像,并保存为文件。 1 from PIL import Image 2 3 im = Image.open('棒棒哒.gif') # 读入一个GIF文件 4 try: 5 im.save('picframe{:02d}.png'.fo 阅读全文
posted @ 2020-04-19 13:34 ghhzaq 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 用python进行对乒乓球比赛的分析 在一场比赛中,先得11分的获胜;若俩队同时的10分,则先超过对方2分的获胜。 单打采用7局4胜,双打采用5局3胜。 (1)单打 代码: 1 #e15.1MatchAnalysis.py 2 from random import random 3 def prin 阅读全文
posted @ 2020-04-18 11:37 ghhzaq 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 1 def getTaxt(): 2 txt=open('hamlet.txt') 3 txt = txt.lower() 4 for ch in '!"#$%&()*+,-./:;<=>?@[\\]^_‘{|}~': 5 txt = txt.replace(ch, " ") #将文本中特殊字符替换 阅读全文
posted @ 2020-04-06 15:21 ghhzaq 阅读(190) 评论(0) 推荐(0) 编辑