2.25 python字符串(13个) 1.以XX开头 (startswith()) v1="我爱我的祖国" result = v1.startswith("我") #判断是否以“我”开头,如果是返回"true" print(result) #true #例 v1=input("请输入户籍所在地") ...
分类:
编程语言 时间:
2021-02-27 13:13:22
阅读次数:
0
同一个nginx配置文件,请求不同的域名可以指定对应的目录 nginx配置 cat long.conf server { listen 80; server_name a.com b.com c.com; location / { root /home/long/$host/; index inde ...
分类:
其他好文 时间:
2021-02-27 13:10:39
阅读次数:
0
简单记一下使用element UI表格涉及到合并时的方法: 1. 合并行: 先对数据做处理: dealWithData () { const result = [] let pos = 0 const data = this.tableData for (let i = 0; i < data.le ...
分类:
其他好文 时间:
2021-02-27 13:04:55
阅读次数:
0
算是第一个独立完成的中等题了。对二叉树进行一次先序遍历即可。 class Solution { public: TreeNode *targetNode; TreeNode *resultNode; TreeNode *getTargetCopy(TreeNode *original, TreeNo ...
分类:
其他好文 时间:
2021-02-26 13:09:42
阅读次数:
0
例如 _sopen_s 在磁盘空间不够的时候, 宏 errno 就会返回 ENOSPC(28) MSDN 文档时只提到以下错误码 errno valueCondition EACCES The given path is a directory, or the file is read-only, ...
assign : 对数据赋值,对数组的初始化。但不能对数组中的某一个值进行赋值。 举例:Tuple1 := [1,0,3,4,5,6,7,8,9] // 对数组进行初始化 Val := sin(1.2) + cos(1.2) // 对某一个值进行赋值 Tuple2 := [] // 数组定义 ass ...
分类:
编程语言 时间:
2021-02-25 12:21:03
阅读次数:
0
主要配置 http { upstream myhtml { server 106.52.147.100; server 106.52.147.101; } server { listen 80; server_name abc.wsycoon.cn; location / { proxy_buffe ...
分类:
其他好文 时间:
2021-02-25 11:46:55
阅读次数:
0
对于如下代码的,它的打印结果是什么 NSThread *thread = [[NSThread alloc] initWithBlock:^{ NSLog(@"1"); }]; [thread start]; [self performSelector:@selector(testhaha) onT ...
分类:
编程语言 时间:
2021-02-24 13:19:34
阅读次数:
0
prepare_kernel_cred - Prepare a set of credentials for a kernel service 使用指定进程的 real_cred 去构造一个新的 cred,不是引用,不是引用,不是引用,而是创建一个新的 cred 源码版本:Linux Kernel ...
分类:
系统相关 时间:
2021-02-24 13:11:59
阅读次数:
0
JavaScript高级:JavaScript面向对象:类的定义和使用,字面量类的定义和使用;JavaScript内置对象:表单校验案例;,JavaScript BOM:window窗口对象,Location地址栏对象,案例动态广告;JavaScript封装 ...
分类:
编程语言 时间:
2021-02-23 14:23:11
阅读次数:
0