import java.util.Scanner; public class Dome1{ public static void main (String []args){ Scanner input = new Scanner (System.in ); float score;//定义变量 Sy... ...
分类:
编程语言 时间:
2018-07-31 21:34:20
阅读次数:
164
原帖链接:http://bbs.csdn.net/topics/280002741 表架构 Student(S#,Sname,Sage,Ssex) 学生表 Course(C#,Cname,T#) 课程表 SC(S#,C#,score) 成绩表 Teacher(T#,Tname) 教师表 建表语句 插 ...
分类:
数据库 时间:
2018-07-31 10:56:46
阅读次数:
154
Time Limit: 3 sec / Memory Limit: 1024 MB Score : 600600 points Problem Statement You are given a string SS of length 2N2N consisting of lowercase Eng ...
分类:
其他好文 时间:
2018-07-30 13:27:43
阅读次数:
191
题目描述: We have a two dimensional matrix A where each value is 0 or 1. A move consists of choosing any row or column, and toggling each value in that ro ...
分类:
其他好文 时间:
2018-07-29 12:56:22
阅读次数:
161
解压:
a,b,c,d=f(同上)
不要中间的值:
a,_,_,b=f
a,*_,b=f()
"_"为一个不使用的值
"*_"为n个不使用的值
赋值运算:
le=1
le+1=1 等于 le=le+1 (适合所有运算符)
逻辑:
and(与),or(或),not(非,只实现紧跟它后的判断)
print(not 3 > 4 )
判断值是否相等:"=="
判断id时否相等:"is"
if格式:
if 判断语句 :
执行语句
else:
执行语句
多if:
if 判断语句 :
if 判断语句 :
执行语句
else:
执行语句
else:
执行语句
例:
input(‘score>>‘)
if score.isdigit(): #isdigit()判断变量是否为纯数字
score=int(score) #int只能转换整型类型
elif score>=90 :
print(‘优秀‘)
elif score>=80 :
print(‘良好‘)
elif sc
分类:
编程语言 时间:
2018-07-26 23:45:46
阅读次数:
302
Time Limit: 2 sec / Memory Limit: 1024 MB Score : 200200 points Problem Statement Takahashi lives in another world. There are slimes (creatures) of 10 ...
分类:
其他好文 时间:
2018-07-26 23:38:26
阅读次数:
262
结构体可以根据里面的数据进行排序,会调换整个结构体顺序 struct q { char name[20]; int num; int score; }x[10005]; int cmp(q x,q y) { if(x.num!=y.num) return x.num y.num; return x. ...
分类:
其他好文 时间:
2018-07-26 23:27:24
阅读次数:
161
0.背景 使用 scrapy_redis 爬虫, 忘记或错误设置 request.priority(Rule 也可以通过参数 process_request 设置 request.priority),导致提取 item 的 request 排在有序集 xxx:requests 的队尾,持续占用内存。 ...
分类:
编程语言 时间:
2018-07-26 20:01:04
阅读次数:
164
调用:LabelEffect.instance.playEffect(target, { time: 1500, initNum: num, num: score, regulator: 50 }) ...
分类:
其他好文 时间:
2018-07-26 18:24:52
阅读次数:
97
https://beta.atcoder.jp/contests/abc103 A - Task Scheduling Problem Time Limit: 2 sec / Memory Limit: 1024 MB Score : 100100 points Problem Statement ...
分类:
其他好文 时间:
2018-07-24 17:55:10
阅读次数:
144