相关推荐
2020年6月电子学会Python等级考试试卷(二级)考题解析
青少年软件编程(Python)等级考试试卷(二级A卷) 分数:100题数:38 总体情况 姓名 开始时间 结束时间 用时(分钟) 得分 得分率 是否通过 考试状态 一、单选题(共25题,每题2分,共50分) 1. 下面程序执行...
【电子学会】2023年03月Python二级试题
青少年软件编程(Python)等级考试试卷(二级)分数:100 题数:37。1、下列说法正确的是?( )【易】 A. {123: 'a', 'a': 123}不是一个合法的字典 B. 数字、字符串、列表和元组都可以作为字典的键 C. {(12, 34, 'a'): 'a', 'a': 5678}是一个合法的字典 D. 字典中的内容一经创建就不能再修改 2、下列程序的运行结果是?( )【易】 d1 = dict(age=18) print(d1)
2020年12月电子学会Python等级考试试卷(三级)考题解析
青少年软件编程(Python)等级考试试卷(三级) 分数:100.00 题数:38 一、单选题(共25题,每题2分,共50分) 要对二维列表所有的数据进行格式化输出,打印成表格形状,程序段如下: ls = [[‘金京’,89],[ ‘吴树海’,80],[ ‘王津津’,90]] for row in range(len(ls)): for column in range(len(ls[row])): &
【电子学会】2021年12月Python二级试题
1、执行以下程序运行结果是?( )标准答案:B试题解析:列表排序和for循环的应用,根据题意先将列表从小到大,然后依次输出,所以选择B2、运行以下程序当输入12时,输出结果为?( )标准答案:C试题解析:本题的意思是年龄超过10岁,票价为30,没有超过10岁,票价为15,根据题意选择C。3、执行以下程序运行结果是?( )标准答案:C试题解析:本题是修改‘nl’为11,删除‘gj’,加入‘xm’,所以新的字典中不会有’gj’4、执行以下程序运行结果是?( )标准答案:C。
2020年9月电子学会Python等级考试试卷(二级)考题解析
青少年软件编程(Python)等级考试试卷(二级A卷) 分数:100.00 题数:38 一、单选题(共25题,每题2分,共50分) 1. numbers = [1, 11, 111, 9], 运行numbers.sort() 后,运行numbers.reverse() numbers会变成?( ) A、[1, 9, 11, 111] B、[1, 11, 111] C、[111, 11, 9, 1] D、[9111111] 试题编号:20200211-zaq-...
2020年12月电子学会Python等级考试试卷(一级)考题解析
青少年软件编程(Python)等级考试试卷(一级) 分数:100.00 题数:37 一、单选题(共25题,每题2分,共50分) 执行语句print(10==10.0)的结果为?( ) A、10 B、10.0 C、True D、False 试题编号:20200319-fjn-025 题型:单选题 答案:C 难度:一般 试题解析: 执行语句y=4**3后,变量y的值为?( ) A、0 B、12 C、64 D、81 试题编号:20200319-fjn-029 题型:单选题 答案:C
2020年12月电子学会Python等级考试试卷(四级)考题解析
青少年软件编程(Python)等级考试试卷(四级) 分数:100.00 题数:38 一、单选题(共25题,每题2分,共50分) 1. 以下有关算法的表述中正确的是?( ) A、描述算法可以有不同的方式,可用自然语言也可用流程图等 B、算法可以看成按照要求设计好的有限的确切的步骤解决问题,并且这样的步骤只能解决当前问题 C、算法需要一步一步执行,每一步执行的操作必须明确,不能含混不清,而且经过有限步或无限步后能得出结果 D、算法要求按部就班地执行相应的步骤,每一步可...
【电子学会】2022年12月Python二级试卷
如果输入的字符串的长度是奇数,就输出字符串最中间的字符。27、Python中,可以通过索引来访问列表、字符串等序列,也可以通过索引对列表中的元素和字符串中的字符进行修改。1、分别取出该字符串的第偶数位的元素(提醒注意:是按照从左往右数的方式确定字符串的位置);(6)当用户输入的字符串长度为偶数时,能正确地截取字符串的最后一个字符并输出;(5)当用户输入的字符串长度为奇数时,能正确地截取字符串最中间的字符并输出;26、字典的元素可以通过键来访问,也可以通过索引(下标)来访问。
【电子学会】2020年06月Python二级试题
1、下面程序执行完毕后,最终的结果是?( )标准答案:B试题解析:循环中套条件,又与列表进行结合,本题的意思是从a列表的最后一个元素开始移除,如果这个元素是偶数那么添加到b列表中,不是就添加到c列表中,所以选择B选项。2、以下程序的运行结果是?( )标准答案:B试题解析:本题的意思是输出列表中所有带有义的元素,武义和义乌都符合,所有选择B3、以下程序的输出结果是?( )标准答案:A4、列表listV = list(range(10)),以下能够输出列表listV中最小元素的是?( )
2021年6月电子学会Python等级考试试卷(二级)考题解析
青少年软件编程(Python)等级考试试卷(二级) 分数:100.00 题数:37 一、单选题(共25题,每题2分,共50分) 1. 执行下列代码后,运行结果是?( ) seq=['hello','good','morning'] s='*'.join(seq) print(s) A、hello*good*morning* B、*hello*good*morning C、hello*good*morning D、*hello*good*morning* ...
2021年3月电子学会Python等级考试试卷(二级)考题解析
青少年软件编程(Python)等级考试试卷(二级) 分数:100.00 题数:37 一、单选题(共25题,共50分)全部考级题目可以+我的微信:15570666506 1. 对于字典infor = {"name":"tom", "age":13, "sex":"male"},删除"age":13键值对的操作正确的是?( ) A、del infor['age'] B、del infor["age":13] C、del infor D、infor.clear() 试...
【电子学会】2020年09月Python二级试题
1、numbers = [1, 11, 111, 9], 运行 numbers.sort() 后,运行numbers.reverse() numbers会变成?( )标准答案:C2、执行下列代码,输出的结果是?( )标准答案:A3、下列案例的输出结果是什么?( )标准答案:A试题解析:元组的常见操作,a1=t1[2:]截取2号位后(包含2号位)的元素,而a2=t2[2:5]获取的是2/3/4位上的元素,所以答案选择A。
2020年6月电子学会Python等级考试试卷(一级)考题解析
青少年软件编程(Python)等级考试试卷(一级A卷) 分数:100.00 题数:38 一、单选题(共25题,每题2分,共50分) 1. 以下哪种输入结果不可能得到以下反馈: 重要的事情说三遍:安全第一!安全第一!安全第一!( ) A、print("重要事情说三遍:"+"安全第一!"*3) B、print("重要事情说三遍:"+"安全第一!“+”安全第一!"*2) C、print("重要事情说三遍:"+"安全第一!"+"安全第一!"+"安全第一!") D、prin...
2022年3月电子学会Python等级考试试卷(二级)答案解析
目录 青少年软件编程(Python)等级考试试卷(二级) 分数:100题数:37 一、单选题(共25题,每题2分,共50分) 1. 关于Python中的列表,下列描述错误的是?( ) 2. 已知列表a=[1,3,5,7],下列语句无法将a变成a=[1,3,5,7,9]的是?( ) 3. 关于以下代码段的说法错误的是?( ) 4. 下面程序的运行结果是?( ) 5. 以下关于元组的描述正确的是?( ) 6. 以下程序的输出结果是?( ) 7. 以下代码的输出结果是?( ) 8. 以下..
配电网可靠性评估(一)—最小路法和非序贯蒙特卡洛模拟法的matlab实现
电力系统的可靠性研究是相关领域的热点问题。根据研究对象的不同,又可分为发电系统的可靠性,输电系统的可靠性和配电系统的可靠性。配电网在电力系统中处于最末端的位置,直接和用户相连,一旦出现故障情况,就会在用户侧表现为停电事故。因此对配电网的可靠性评估有着重大意义。......
【短路计算篇】短路电流计算详解:从理论到实践
短路电流是指在正常电路中电势不同的两点之间发生阻抗极小的故障而引起的过电流。短路时电流强度很大,可能达到额定电流的10-15倍,大容量电力系统中短路电流可达数万安。简单比喻:短路就像水管突然爆裂,水流瞬间增大很多倍,对管道系统造成巨大冲击。短路电流计算是电气系统设计中的基础性工作,关系到整个系统的安全运行。通过本文介绍的各种计算方法,工程师可以根据具体情况选择合适的方法进行准确计算。
2024年五大革新图像分割模型解析:架构创新与实战应用指南
本文深入解析2024年五大革新图像分割模型,包括SAM2、Mask2Former、DINOv2和Swin Transformer等,探讨其架构创新与实战应用。从多尺度处理、提示交互到自监督学习,这些模型在精度提升、效率优化和交互增强方面取得突破,广泛应用于医疗影像、工业质检和智慧城市等领域。
英飞凌TC3xx实战:PWM中点触发ADC采集+DMA自动搬运完整配置流程(基于ILLD库)
本文详细介绍了在英飞凌TC3xx系列微控制器上使用ILLD库实现PWM中点触发ADC采集并通过DMA自动搬运数据的完整配置流程。该方案适用于电机控制、电源管理等需要高精度定时采集的场景,通过GTM生成PWM信号、ADC采集和DMA传输实现全硬件自动化流程,显著提升系统效率。
告别Python中间件!C#原生调用YOLOv11/v12:工业视觉检测零语言壁垒全流程
本文介绍了一种基于C#和ONNX Runtime的工业视觉检测解决方案,解决了传统YOLO模型在工业应用中面临的三大痛点:语言壁垒、性能损耗和模型更新困难。该系统采用三层架构设计,支持C#原生调用YOLO模型,无需中间件,性能损耗低于5%,满足工业产线30FPS+的实时性要求。文章详细阐述了环境搭建、模型导出规范、核心代码实现及工业级优化方案,提供可直接用于生产环境的完整流程,实现了训练与部署的解耦,显著降低了维护成本。该方案兼容主流YOLO版本,支持全平台部署,为工业视觉检测提供了高效可靠的C#集成方案。
thinkphp6/8 - 实现评论区发表评论、回复评论功能数据库表设计与整个逻辑思路过程分析,tp5 评论盖楼等功能(附带源码稍加改造即可使用)
tp5评论区数据库表设计,tp5发表回复评论功能设计,thinkphp5如何做评论功能,tp5 php评论区实现发表回复删除评论,tp5评论区盖楼源码及数据表设计思路,thinkphp评论功能详细教程,thinkphp实现评论与回复功能,thinkphp实现文章评论和回复评论功能,tp5实现评论回复功能,thinkphp如何实现评论区,tp5网站PC移动端h5怎么做评论区发表留言及回复功能,thinkphp实现评论区插件,thinkphp评论区相互发表回复功能详细教程,thinkphp有没有评论区的组件插件
YOLOv改进 | YOLOv11添加WTConv小波卷积,能够更有效地捕捉局部和全局特征
在计算机视觉目标检测领域,YOLO(You Only Look Once)系列算法凭借“单阶段检测”的高效性(一次前向传播同时完成目标定位与分类),已成为工业界与学术界的主流选择。从YOLOv1到YOLOv11,算法持续迭代优化,在速度与精度之间寻求平衡,广泛应用于自动驾驶、智能安防、工业质检等场景。为解决上述问题,本文提出一种基于,将输入特征图分解为不同频率的子带(低频全局信息与高频局部细节),并分别通过卷积操作提取局部与全局特征,最后融合多尺度特征,从而更有效地捕捉目标的局部细节与全局结构。
家人们,谁懂啊,dify又报错了:[models] Bad Request Error, 500 Server Error:Internal Server Error for url: http://
本来今天下班,坐在地铁上,一身劳累。一起上班的小兄弟儿,突然甩来一张截图:老大!dify又报错了。没办法,一到家就打开电脑,开始排查。
深度学习工具包 DeepLearningToolbox
深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[](https://bitdeli.com/free "Bitdeli Badge")
假人有限元模型
假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用
win10 跳过U8环境检测的IE WebControls.rar
win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。
精雕软件(JDpaint) 5.5 绿色版
精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版
订阅专栏 解锁全文
2984



被折叠的 条评论
为什么被折叠?



