自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

转载 Div默认高度为0

Div默认高度为0转载于:https://www.cnblogs.com/L-Pxiaotiancai/p/8453009.html

2018-02-18 18:35:00 173

转载 个人信息练习

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 175

转载 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 96

转载 制作网站导航

<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 110

转载 居中

margin 0 auto是盒子包含盒子时的水平居中text align是盒子包含内容时的水平居中转载于:https://www.cnblogs.com/L-Pxiaotiancai/p/8450245.html

2018-02-16 16:06:00 73

转载 表格

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 83

转载 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 88

转载 内置函数

array=[1,3,4,71,2]def add_num(x): return x+1def map_test(func,array): ret=[] for i in array: ret.append(func(i)) return retprint(map_test(add_num,array))...

2018-02-08 09:44:00 143

转载 max的使用方法

元祖不可以改变;列表可变,列表用[]元祖用(),字典和列表都用{}集合:无序元祖:有序列表:有序字典:无序数字,元祖,字符串是不可以修改的对比下列两个程序的差异全局变量对于可变元素可以不声明修改name=['linnan','syh']def change(): name.append("mm")change()print(n...

2018-02-07 21:40:00 328

转载 库的安装

3. 如用pip安装,常用命令就是:pip install simplejson # 安装Python包pip install --upgrade simplejson # 升级Python包pip uninstall simplejson # 卸载Python包jupyter : ...

2018-02-02 14:46:00 145

转载 面向对象

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 65

转载 字典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 59

转载 字典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 72

转载 列表的方法

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 73

转载 字符串的方法

s='fdasfdsa'ss=s.find('a',0,9)print(ss)s='fdasfdsa'ss=s[0]通过索引下标获取字符s='fdasfdsa'ss=s[0:5]-》索引范围-》fdasfs='fdasfdsa'ss=s[0:-1]表示从开头到结尾-》fdasfdss='fdasfdsa'len(s)-&g...

2018-01-31 14:20:00 86

转载 基本数据类型

9//2=49/2=4.5python3中,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 81

转载 指针

值传递和地址传递#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 68

转载 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 59

转载 2018/1/1

考研帮app网易公开课算法视频Python的创始人在dropbox工作,改公司就像百度网盘互联网和金融是两个好的领域openStack 云计算互联网找工作 拉勾转载于:https://www.cnblogs.com/L-Pxiaotiancai/p/8166066.html...

2018-01-01 08:23:00 99

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除