#!/usr/bin/env python # -*- coding:utf-8 -*- name = "郑建文" "郑建文" 是字符串 "郑"是字符 """ # ctrl + ? 快捷键整体注释 if "z正" in name: print('OK') else: print('Error') i ...
分类:
编程语言 时间:
2020-04-06 11:33:59
阅读次数:
59
1.在test suite右键点击New User Keyword 2.在test case中调用这个用户关键字@{pid} psu_id #表示注释 ...
分类:
其他好文 时间:
2020-04-06 11:24:29
阅读次数:
81
1. 求工资 大于 8888 , 年龄大于32 的人数 SELECT SUM(CASE WHEN SALARY > 8888 AND AGE >32 THEN 1 ELSE 0 END) FROM S_EMP; 2.如何快速求得各班最高得分 SELECT(CLASS_NO,MAX(SCORE)) G ...
分类:
其他好文 时间:
2020-04-06 09:23:25
阅读次数:
63
愿醉卧沙场可未有匹夫之勇。 第三周学记 第三周主要学习正则表达式和Shell编程 1.正则表达式基本字符 2.扩展正则表达式 3.grep,sed,awk文本处理工具使用 4.Shell脚本基本格式和构成 5.Shell基本逻辑 6.Shell算术运算 7、Shell条件判断 ...
分类:
系统相关 时间:
2020-04-06 00:04:54
阅读次数:
124
Problem : A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element a ...
分类:
其他好文 时间:
2020-04-05 23:55:14
阅读次数:
129
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int T = in.nextInt(); ...
分类:
其他好文 时间:
2020-04-05 13:23:27
阅读次数:
48
时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32M,其他语言64M 题目描述 求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。 思路: 利用 短路求值 的方法 C语言的逻辑操作符 && ...
分类:
其他好文 时间:
2020-04-05 11:16:58
阅读次数:
83
#include<stdio.h> int main(void) { int a; scanf("%d",&a); switch(a) { case 1: printf("a"); case 2: printf("b"); case 3: printf("c\n"); } return 0; } d ...
分类:
其他好文 时间:
2020-04-04 22:51:37
阅读次数:
112
以下为为求区间和,求区间最大值,最小值模板 题目以 敌兵布阵 HDU - 1166 为例子 1 #include <iostream> 2 #include <algorithm> 3 #include <string.h> 4 #include <cstdio> 5 #include <strin ...
分类:
其他好文 时间:
2020-04-04 22:43:45
阅读次数:
77
switch语句 #include<stdio.h> int main(void) { printf("请输入要取得楼层"); int a; scanf("%d",&a); switch(a) //switch和case只能接受整型数据 { case 1: //只要执行了一个case或者defaul ...
分类:
其他好文 时间:
2020-04-04 22:38:01
阅读次数:
72