为您找到约 85 条结果,搜索耗时:0.0045秒

python实现骰子

... wish import random class Die(object): # A dice has a feature of number about how many sides it has when it's # established,like 6. def __init__(self): self.sides = 6 """because a dice contains at least 4 planes. So use this method to give it a jud...

awk sed 大全

...,&/;ta'#sed -r -e :a -e 's/(.*[0-9])([0-9]{3})/\1,\2/;ta'#awk '{while(match($0,/[0-9][0-9][0-9][0-9]+/)){$0=sprintf("%s,%s",substr($0,0,RSTART+RLENGTH-4),substr($0,RSTART+RLENGTH-3))}print $0}'5# 显示文件中的前10行 (模拟“head”的行为)sed ‘10q’passwdawk 'NR<11' passwdaw...

评估蓄电池的价值以平衡屋顶光伏发电

...一步重用/修改/适配自己的项目加载库和输入数据import matplotlib.pyplot as plt import numpy as np import pandas as pd import urllib %matplotlib inline下载数据urllib.urlretrieve ("http://www.labothap.ulg.ac.be/notebooks/battery_storage/solar_data.csv", "solar_data.csv") url...

ANFIS 仿真

...的训练数据可加快训练过程,但解决方案的准确性较低static void anfisForward(FIS *fis, int from, int to) { int i; if (from < fis->in_n || to >= fis->node_n) fisError("Node index out of bound!"); /* forward calculation */ for (i = from; i <= to ; i++...

DS18B20程序

DS18B20 protus仿真#include <at89x51.h>//用AT89C51时就用这个头文件 //#include <reg52.h>//用华邦W78E58B时必须用这个头文件 #include <absacc.h> #include <ctype.h> #include <math.h> #include <stdio.h> #include <string.h> #include &lt...

电力系统暂态仿真

这是用matlab和PWRWRLD分别进行了暂态仿真,有阻尼仿真 XL_km=0.367; % ohm/km at 60 Hz RL_km= 0.1*XL_km; % Resistance in ohm/km KV_LL= 345; MVA_Base=100; % common 3-phase base Z_Base=KV_LL^2/MVA_Base; % common base % YBUS Creation Z13_ohm=(RL_km+j*XL_km)*200; B13_Micro_Mho=4...

微软笔试面试题库

...试题、微软2013校园招聘笔试题(9.22 第一次笔试)。1. What is the difference between a linked list and an array?(3 Points)    A. Search complexity when both are sorted    B. Dynamically add/remove    C. Random access efficiency    D. Dat...

infiniband网络监控

...e ibswitches command to identify the Sun Network QDR InfiniBand Gateway Switches in the InfiniBand fabric in your Exalogic machine. This command displays the Global Unique Identifier (GUID), name, Local Identifier (LID), and LID mask control (LMC) for each switch. The output of the command...

在RHEL/CentOS 7/8中配置大页面的3个简单步骤

...我将分享配置大页面的步骤,并创建大页面池以根据Red Hat和CentOS 7 Linux的请求将页面分配给应用程序。我们将使用hugeadm工具配置大型页面在Red Hat/CentOS 7/8中配置大页面我们可以使用内核可调参数vm.nr_hugepages来配置大页面。第1步...

针对教材《单片机开发从入门到精通》学习资源

... √ √ 仿真、B105开发板 项目13- I2C总线器件AT24C04及其应用 第5章 √ √ 仿真、B105开发板 项目14-实时时钟DS1302的原理与应用 第5章 √ √ 仿真 项目15 -AD转换器 15-1 ADC0832应用 ...

微信捐赠

微信扫一扫体验

立即
上传
返回
顶部