全文搜索
标题搜索
全部时间
1小时内
1天内
1周内
1个月内
默认排序
按时间排序
为您找到相关结果560,724个

python 用matplotlib绘制折线图详情_python_脚本之家

y_view = [random.randint(50,200) for i in range(30)]展示10月份数据折线图: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 import matplotlib.pyplot as plt import random plt.rcParams["font.sans-serif"]=['SimHei'] plt.rcParams["axes.unicode_minus"]=False x_data ...
www.jb51.net/article/2308...htm 2025-4-11

基于keras中的回调函数用法说明_python_脚本之家

model.fit(train_set_x, train_set_y, validation_split=0.1, nb_epoch=200, batch_size=256, callbacks=[lrate]) 如何记录每一次epoch的训练/验证损失/准确度? Model.fit函数会返回一个 History 回调,该回调有一个属性history包含一个封装有连续损失/准确的lists。代码如下: hist = model.fit(X, y,valida...
www.jb51.net/article/1888...htm 2025-4-20

PHP验证码类代码( 最新修改,完全定制化! )_php技巧_脚本之家

function get_y () { if ($this->ext_rand_y) $this->y = rand(5, $this->im_height/5); else $this->y = $this->im_height / 4 ; } // 获得随机色 function get_randcolor () { $this->randcolor = imagecolorallocate($this->im,rand(0,100),rand(0,150),rand(0,200)); ...
www.jb51.net/article/255...htm 2025-4-4

安卓版本微信跳一跳自动执行代码剖析_Android_脚本之家

1 math.sqrt((board_x - piece_x) ** 2 + (board_y - piece_y) ** 2) 然后将该值传给跳跃函数即可1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #该函数由距离根据经验值计算出按压时间 def jump(distance): press_time = distance * press_coefficient press_time = max(press_time, 200...
www.jb51.net/article/1321...htm 2025-4-18

Python实现蒙特卡洛算法小实验过程详解_python_脚本之家

y_max=0.0 x_min, x_max=-2.0,2.0 y=lambdax:200*np.sin(x)*np.exp(-0.05*x)#匿名函数 foriinrange(0, n+1): x0=random.uniform(x_min, x_max) ify(x0) > y_max: y_max=y(x0) x_max=x0 returny_max, x_max 以上三个例子也称为基于蒙特卡洛的投点法,由此得出的值并不是一个精...
www.jb51.net/article/1651...htm 2025-4-7

使用原生js编写一个简单的框选功能方法_javascript技巧_脚本之家

top: 200px; left: 200px; border: 1px solid #eee; overflow: hidden; overflow-y: auto; } .fileDiv { display: inline-block; width: 100px; height: 100px; margin: 24px; background-color: #0082CC; }
www.jb51.net/article/1611...htm 2025-4-15

Python实现生命游戏的示例代码(tkinter版)_python_脚本之家

tButton3.place(x=bX, y=bY+dY*3 ,width=120,height=40) tCanvas = tk.Canvas(win, width=200, height=45) tCanvas.place(x=800,y=716) tVisit = tCanvas.create_text((88, 22), text=u"点此访问Hann's CSDN主页!") tCanvas.itemconfig(tVisit, fill='blue', tags=('btnText')) tCanvas...
www.jb51.net/article/2580...htm 2025-4-18

python绘制双Y轴折线图以及单Y轴双变量柱状图的实例_python_脚本之家

今天小编就为大家分享一篇python绘制双Y轴折线图以及单Y轴双变量柱状图的实例,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧近来实验室的师姐要发论文,由于论文交稿时间临近,有一些杂活儿需要处理,作为实验室资历最浅的一批,我这个实习生也就责无旁贷地帮忙当个下手。今天师姐派了一个小活,具体...
www.jb51.net/article/1647...htm 2025-4-19

php验证码实现代码(3种)_php实例_脚本之家

imagestring($image,$fontsize,$x,$y,$fontcontent,$fontcolor); } //10>存到session $_SESSION['authcode'] = $captcha_code; //8>增加干扰元素,设置雪花点 for($i=0;$i<200;$i++){ //设置点的颜色,50-200颜色比数字浅,不干扰阅读 $pointcolor = imagecolorallocate($image,rand(50,200), rand...
www.jb51.net/article/719...htm 2025-4-20

iOS使用Charts框架绘制折线图_IOS_脚本之家

主要是设置Y轴的网格线样式, 代码如下: 1 2 3 leftAxis.gridLineDashLengths = @[@3.0f, @3.0f];//设置虚线样式的网格线 leftAxis.gridColor = [UIColor colorWithRed:200/255.0f green:200/255.0f blue:200/255.0f alpha:1];//网格线颜色 leftAxis.gridAntialiasEnabled = YES;//开启抗锯齿 5.添加...
www.jb51.net/article/1014...htm 2025-4-16