1、面向对象 2、类,实例 把一个抽象的类的变成一个具体的对象的过程叫实例化,实例化时,python把实例本身传入类的函数中, 类中__init__函数时初始化函数(方法),实例化时,__init__方法自动执行 类本身也是一个内存对象 print (student.school) print (s ...
分类:
其他好文 时间:
2016-11-06 02:07:40
阅读次数:
217
Description Corrupt governors always find ways to get dirty money. Paint something, then sell the worthless painting at a high price to someone who wa ...
分类:
其他好文 时间:
2016-11-05 17:15:46
阅读次数:
236
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>IFE JavaScript Task 01</title> <style> body { font-size: 25px; font-family: 'Microsoft yahe ...
分类:
其他好文 时间:
2016-11-05 09:43:00
阅读次数:
232
list 把数组中的值赋给一些变量: ucfirst 将字符串第一个字符改大写。 语法: string ucfirst(string str); lcfirst() - 把字符串中的首字符转换为小写 ucwords() - 把字符串中每个单词的首字符转换为大写 strtoupper() - 把字符串 ...
分类:
Web程序 时间:
2016-11-04 20:15:32
阅读次数:
235
MongoDB 备份(mongodump)与恢复(mongorestore) ...
分类:
数据库 时间:
2016-11-04 09:45:35
阅读次数:
223
jQuery 元素选择器和属性选择器允许您通过标签名、属性名或内容对 HTML 元素进行选择。 选择器允许您对 HTML 元素组或单个元素进行操作。 jQuery 元素选择器 $("p") 选取 <p> 元素。 $("p.intro") 选取所有 class="intro" 的 <p> 元素。 $( ...
分类:
Web程序 时间:
2016-11-04 01:39:11
阅读次数:
214
HTML绑定示例: 需求: 在点击触发submit方法后,触发移除掉 .edit 中的onClick事件; 解决方案: 1.失败方案: 2.成功方案: 参考资料: 1. http://www.w3schools.com/jquery/event_off.asp 2.http://stackoverf ...
分类:
Web程序 时间:
2016-11-01 14:09:23
阅读次数:
483
用于文档说明,有自带收缩、展开功能 http://www.w3school.com.cn/tiy/t.asp?f=html5_summary ...
分类:
其他好文 时间:
2016-10-31 13:16:28
阅读次数:
183
题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=2196 Problem Description A school bought the first computer some time ago(so this computer's id i ...
分类:
其他好文 时间:
2016-10-29 11:27:56
阅读次数:
172
用margin还是用padding这个问题是每个学习CSS进阶时的必经之路。 CSS边距属性定义元素周围的空间。通过使用单独的属性,可以对上、右、下、左的外边距进行设置。也可以使用简写的外边距属性同时改变所有的外边距。——W3School边界(margin):元素周围生成额外的空白区。“空白区”通常 ...
分类:
其他好文 时间:
2016-10-29 01:24:00
阅读次数:
121