public class oopDemoStufent2 { //static是一个静态方法 public static void say1(){ System.out.println("学生说好"); }} public class oopDemoStudent { //没有static就是非静态 ...
分类:
其他好文 时间:
2021-04-30 12:15:30
阅读次数:
0
<?php $r = tail('dd.ddmap.log','Baiduspider'); echo '<pre>'; print_r($r); echo '</pre>'; /** * @param $filename * @param false $num * @param int $n * ...
分类:
Web程序 时间:
2021-04-30 12:11:16
阅读次数:
0
import java.util.Scanner; //输入并打印 public class ShuRuDaYin { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.p ...
分类:
其他好文 时间:
2021-04-30 11:58:37
阅读次数:
0
可以用next()方法依次取值的对象称为迭代器。 生成器是迭代器。 列表不是迭代器,列表是可迭代对象,列表可以通过iter(list)转化为迭代器。 一、生成器 1、定义 x = [1,2,3,4] y = (i for i in x) print(type(y)) for a in y: prin ...
分类:
其他好文 时间:
2021-04-29 11:59:26
阅读次数:
0
c语言中程序的循环控制 大小值的判断及赋值。 输出长度大于高度的矩形。 1、 #include <stdio.h> int main(void) { int i, j, height, width, min, max; printf("please input the height and widt ...
分类:
编程语言 时间:
2021-04-28 12:21:22
阅读次数:
0
python print("Hello, World!") ...
分类:
编程语言 时间:
2021-04-28 12:20:04
阅读次数:
0
一、线性回归 一、线性回归 ? 假设有数据有 ,其中 , 。其中m为训练集样本数,n为样本维度,y是样本的真实值。线性回归采用一个多维的线性函数来尽可能的拟合所有的数据点,最简单的想法就是最小化函数值与真实值误差的平方(概率解释-高斯分布加最大似然估计)。即有如下目标函数: 其中线性函数如下: ? ...
分类:
其他好文 时间:
2021-04-28 12:19:06
阅读次数:
0
1、for语句 for (i in 1:5) { print("hello world!") } 2、for语句 sum = 0 for (i in 1:100){ sum = sum + i } print(sum) 3、for语句 sum = 0 for (i in 1:100) { if (i ...
分类:
编程语言 时间:
2021-04-27 15:30:33
阅读次数:
0
# #一、填写请求头 #二、配置程序延迟时间 #三、填写源IP文件 #四、经了解,该接口限制一分钟采集45个 # import requests import json import os from fake_useragent import UserAgent from xlwt import W ...
c语言 4-20 为九九乘法表增加横纵标题。 1、for语句二层循环 #include <stdio.h> int main(void) { int i, j; printf(" |"); for (i = 1; i <= 9; i++) { printf("%3d", i); } putchar( ...
分类:
编程语言 时间:
2021-04-27 15:05:59
阅读次数:
0