- 博客(19)
- 收藏
- 关注
转载 Div默认高度为0
Div默认高度为0 转载于:https://www.cnblogs.com/L-Pxiaotiancai/p/8453009.html
2018-02-18 18:35:00
208
转载 个人信息练习
img 和 input都是内容,剧中用text align <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .box{ ...
2018-02-17 20:27:00
203
转载 CSS案例
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <title></title> 6 <style type="text/css"> 7 ...
2018-02-17 12:17:00
137
转载 制作网站导航
<style type="text/css"> .box{ height: 40px; background-color: #eee; border-top: orange solid 3px; border-bottom: 1px solid #aaa; } .box2{ ; width: 600px; heig...
2018-02-16 17:01:00
136
转载 居中
margin 0 auto是盒子包含盒子时的水平居中 text align是盒子包含内容时的水平居中 转载于:https://www.cnblogs.com/L-Pxiaotiancai/p/8450245.html
2018-02-16 16:06:00
91
转载 表格
table{ width: 200px; height: 300px; border: red solid 1px; border-collapse: collapse; } td{ border: red solid 1px; } </style> </head> <body> <table ...
2018-02-16 11:36:00
100
转载 html
cellspacing="0" 单元格之间的距离cellpadding=”2” 内容距边框的距离如果直接给表格用align=”center” 表格居中如果给tr或者td使用 ,tr(一行的内容)或者td内容居中。<table border="50"表示单元格边框像素值colspan=”2” 合并同一行上的单元格rowspan=”2” 合并同一列上的单元格Valign...
2018-02-13 10:07:00
111
转载 内置函数
array=[1,3,4,71,2] def add_num(x): return x+1 def map_test(func,array): ret=[] for i in array: ret.append(func(i)) return ret print(map_test(add_num,array)) ...
2018-02-08 09:44:00
197
转载 max的使用方法
元祖不可以改变;列表可变,列表用[]元祖用(),字典和列表都用{} 集合:无序 元祖:有序 列表:有序 字典:无序 数字,元祖,字符串是不可以修改的 对比下列两个程序的差异 全局变量对于可变元素可以不声明修改 name=['linnan','syh'] def change(): name.append("mm") change() print(n...
2018-02-07 21:40:00
362
转载 库的安装
3. 如用pip安装,常用命令就是:pip install simplejson # 安装Python包pip install --upgrade simplejson # 升级Python包pip uninstall simplejson # 卸载Python包 jupyter : ...
2018-02-02 14:46:00
182
转载 面向对象
1 global变量 2 x=50 3 def func(): 4 global x 5 print('x is ',x) 6 x=2 7 print('changed global x to ',x) 8 func() 9 print('value of x is',x) 10 11 def say(mes...
2018-02-01 09:55:00
86
转载 字典2
1 v=dict.fromkeys(["k1",12356,"494949"],123) 2 {'494949': 123, 12356: 123, 'k1': 123} 3 4 v=dict.fromkeys(["k1",12356,"494949"],123) 5 v1=v.get("k0",1223)(另一种获得字典中值得方法) 6 dict 7...
2018-01-31 19:25:00
76
转载 字典1
可迭代=可以for循环 li=[22,33,'liad',55] v=tuple(li) print(v) 元祖,字符串,列表可以相互转化,因为都是可迭代对象 tu=('woi','klds') v=''.join(tu) count()指定元素的出现次数 #字典 字典的值是任意值 举例字典:info={ 'k1':123, 'k2':"w...
2018-01-31 18:17:00
93
转载 列表的方法
li=[1,["abc",False],"ilu"] print(li[0:-1]) print(li[1]) 注意,False和True首字母要大写 for i in li: print(i) li=[1,["abc",False],"ilu"] del li[0] li[0:2]=[0,2] for i in li: print(i...
2018-01-31 15:44:00
96
转载 字符串的方法
s='fdasfdsa' ss=s.find('a',0,9) print(ss) s='fdasfdsa' ss=s[0]通过索引下标获取字符 s='fdasfdsa' ss=s[0:5]-》索引范围-》fdasf s='fdasfdsa' ss=s[0:-1]表示从开头到结尾-》fdasfds s='fdasfdsa' len(s)-&g...
2018-01-31 14:20:00
114
转载 基本数据类型
9//2=4 9/2=4.5 python3中,int类型没有取值范围,无论多大的数都是int类型 元祖=tuple 字典 dict 布尔 bool 列表 list 字符串 str 数字 int 方法: int b="123" a=int(b) 加入base参数,指定a的进制是16进制,然后转换成10进制 a="0011" n=int(a,...
2018-01-31 13:20:00
102
转载 指针
值传递和地址传递 #include<stdio.h> void swap(int*m,int*n); int main(){ int a=22; int b=11; swap(&a,&b); printf("a= %d , b= %d\n",a ,b); return 0; } void swap(int*m,in...
2018-01-20 10:10:00
88
转载 C语言
值传递和地址传递 #include<stdio.h> void swap(int*m,int*n); int main(){ int a=22; int b=11; swap(&a,&b); printf("a= %d , b= %d\n",a ,b); return 0; } void swap(int*m,in...
2018-01-20 10:09:00
78
转载 2018/1/1
考研帮app 网易公开课算法视频 Python的创始人在dropbox工作,改公司就像百度网盘 互联网和金融是两个好的领域 openStack 云计算 互联网找工作 拉勾 转载于:https://www.cnblogs.com/L-Pxiaotiancai/p/8166066.html...
2018-01-01 08:23:00
121
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人