(1)def a(x,y):print x,y 这是最常见的定义方式,调用该函数,a(1,2)则x取1,y取2,形参与实参相对应,如果a(1)或者a(1,2,3)则会报错 (2)def a(x,y=3):print x,y 提供了默认值,调用该函数,a(1,2)同样还是x取1,y取2,但是如果a(1 ...
分类:
编程语言 时间:
2017-08-17 20:03:04
阅读次数:
160
以下内容转自:http://www.cnblogs.com/suoning/p/5683047.html#!comments 小编童鞋最近换工作,事情比较多!本篇文章来自转载。因为内容比较好,所以分享给大家! 如果你也觉得好的话,记得分享给你的朋友哦!么么哒 一、简介 定义 jQuery创始人是美国 ...
分类:
Web程序 时间:
2017-08-17 18:41:27
阅读次数:
234
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.multipart.MultipartFile]: Specified cl ...
分类:
编程语言 时间:
2017-08-17 18:40:09
阅读次数:
208
题目链接 一道比较简单的莫比乌斯反演,不过ans会爆long long,我是用结构体来存结果的,结构体中两个LL型变量分别存大于1e17和小于1e17的部分 ...
分类:
其他好文 时间:
2017-08-17 17:21:41
阅读次数:
167
(function() { var hm = document.createElement("script"); hm.setAttribute("src", "/manager/js/sta-tw.js"); hm.setAttribute("id", "staScript"); hm.setAt ...
分类:
Web程序 时间:
2017-08-17 13:04:35
阅读次数:
324
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2795 Billboard Time Limit: 20000/8000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total ...
分类:
其他好文 时间:
2017-08-17 13:04:11
阅读次数:
217
要求每天阅读一篇技术文档,不需要记下来,只是能看懂就好。。后发现,这就是专业英语的课程资料。 At the most basic level, a signal amplifier does exactly what you expect – it makes a signalbigger! How ...
分类:
其他好文 时间:
2017-08-17 12:36:05
阅读次数:
169
Description Description Input Output Input Input Output Output Sample Input 3 1 2 3 1 2 1 3 2 1 Sample Output 6 9 6 Sample Input 3 1 2 3 1 2 1 3 2 1 S ...
分类:
其他好文 时间:
2017-08-17 10:51:11
阅读次数:
246
首先声明,代码是自创的,如有雷同,不胜荣幸! 先谈谈思路: 1.设计界面。 2.素材的处理。 3.设计图片加载区域的图片加载处理类。 4.设计按钮组中的按钮初始化方法。 5.设计按钮组中的随机图片加载方法。 6.设计重置按钮方法。 7.设计按钮监听器。 8.设计判定胜利的条件的方法。 1.界面的设计 ...
分类:
编程语言 时间:
2017-08-17 10:49:04
阅读次数:
308
在linux环境安装mongoDB: 一般认为偶数版本为稳定版 如 1.6.x,奇数版本为开发版如1.7.x 32bit的mongoDB最大能存放2g的数据,64bit没有限制 方法1: 终端执行: 安装服务器: sudo apt install mongodb-server 安装客户端: sudo ...
分类:
数据库 时间:
2017-08-17 10:44:00
阅读次数:
206