Machine Schedule Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8404 Accepted Submission(s): 421 ...
分类:
其他好文 时间:
2016-11-15 23:45:20
阅读次数:
208
内建方法
常用内建方法all
divmod
input
open
staticmethod
abs
enumerate
int
ord
str
any
eval
isinstance
pow
sum
...
分类:
编程语言 时间:
2016-11-15 11:22:41
阅读次数:
216
An easy problem Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description When Teddy was a child , he was always ...
分类:
其他好文 时间:
2016-11-15 10:13:28
阅读次数:
128
dom节点的操作 —— jQuery 内部插入 1、(结尾)append 方法 、 appendto方法(为了方便链式操作) (开头)prepend方法 $('#div1').append($('#div2')); //将div2 插入到 div1 里面的末尾 ? $('#div1').append ...
分类:
其他好文 时间:
2016-11-14 02:16:20
阅读次数:
130
grep,egrep,fgrep : print lines matching a pattern 1.grep : grep [options] PATTERN FILE... PATTERN由元字符和和普通字符组成 -i : --ignore-case , 忽略大小写 -o : --only-m ...
分类:
其他好文 时间:
2016-11-12 22:55:15
阅读次数:
178
一、匿名函数1.1 匿名函数的概念? 声明一个没有函数名的函数,就是匿名函数。? 有函数名的函数就是具名函数。
看下面的代码:
/*
//这里定义了一个函数,而且没有函...
分类:
编程语言 时间:
2016-11-12 20:18:10
阅读次数:
195
you have to insert 2 lines "StrictMode" on MainActivity Class, example's below: 在onCreate()方法下一行添加StrictMode 例子: public class MainActivity extends Act ...
分类:
移动开发 时间:
2016-11-11 19:49:39
阅读次数:
243
本脚本用途:从一个文件夹中获取用户名从另一个文件中获取密码自动创建系统用户代码如下:#!/bin/bashCreat_user(){user=`sed-n"$1"p/home/kiosk/Desktop/user`pass=`sed-n"$1"p/home/kiosk/Desktop/passwd`useradd$userecho"$pass"|passwd--stdin$user}lines=`wc-l/home/kiosk..
分类:
其他好文 时间:
2016-11-11 15:40:26
阅读次数:
187
有个功能:web上需要定时刷新后台数据解决方案:数据通过json传给js,设置定时器进行页面局部刷新处理代码:#django后台代码
@csrf_exempt
@login_required
defdeploy_json(request,id):
withopen("/data/shell/autodeploy.log","r")asdata:
lines=len(list(enumerate(data)))
..
分类:
Web程序 时间:
2016-11-10 21:52:50
阅读次数:
369
Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean ...
分类:
其他好文 时间:
2016-11-10 03:19:16
阅读次数:
209