1.1 形参与实参 形参(形式参数):在定义函数阶段,定义的参数称之为形参,粗略的可以认为是变量名。 实参:在调用函数阶段传入的值称之为实际参数,简称实参,粗略的可以认为是变量值。 def ware_info(vendor_name, store_name, sku): return "{}商家下的 ...
分类:
其他好文 时间:
2021-04-05 12:43:51
阅读次数:
0
#include<bits/stdc++.h> using namespace std; int main(){ char s[105]; int x; scanf("%s%d",&s,&x); int ans=0; int len =strlen(s); for(int i=0;i<len;i++ ...
分类:
其他好文 时间:
2021-04-05 12:35:59
阅读次数:
0
#include<bits/stdc++.h> using namespace std; int main(){ char s[105]; int x,y; while(scanf("%d %d",&x,&y)!=EOF){ scanf("%s",s); int ans=0; int len=str ...
分类:
其他好文 时间:
2021-04-05 12:35:26
阅读次数:
0
链接:http://118.190.20.162/view.page?gpid=T42 代码: #include<bits/stdc++.h> using namespace std; vector<int> ve; int main (){ int n,num; cin>>n; for(int i ...
分类:
其他好文 时间:
2021-04-05 12:29:58
阅读次数:
0
难度 medium 给定两个字符串 text1 和 text2,返回这两个字符串的最长 公共子序列 的长度。如果不存在 公共子序列 ,返回 0 。 一个字符串的 子序列 是指这样一个新的字符串:它是由原字符串在不改变字符的相对顺序的情况下删除某些字符(也可以不删除任何字符)后组成的新字符串。 例如, ...
分类:
其他好文 时间:
2021-04-05 12:24:42
阅读次数:
0
Description: Given a string s and a string array dictionary, return the longest string in the dictionary that can be formed by deleting some of the gi ...
分类:
其他好文 时间:
2021-04-05 12:21:20
阅读次数:
0
柯里化(Currying)是把接受多个参数的函数变换成接受一个单一参数(最初函数的第一个参数)的函数,并且返回接受余下的参数且返回结果的新函数的技术。 通过一个例子再解释理解一下 // 普通的add函数 function add(x, y) { return x + y } // Currying后 ...
分类:
其他好文 时间:
2021-04-05 12:20:34
阅读次数:
0
一、数据集简介 二、MNIST数据集介绍 三、CIFAR 10/100数据集介绍 四、tf.data.Dataset.from_tensor_slices() 五、shuffle()随机打散 六、map()数据预处理 七、实战 import tensorflow as tf import tenso ...
分类:
其他好文 时间:
2021-04-05 12:08:27
阅读次数:
0
class Sarr { public: Sarr() { memset(Bit, 0, sizeof(Bit)); } int lowbit(int pos) { return pos & (-pos); } void update(int pos, int len) { while (pos < ...
分类:
编程语言 时间:
2021-04-05 12:05:49
阅读次数:
0
namespace rad{ mt19937_64 R(time(0)); inline int Rand(int l,int r){ uniform_int_distribution<int> distribution(l,r); return distribution(R); } } using ...
分类:
其他好文 时间:
2021-04-05 12:01:44
阅读次数:
0