摘要: Div默认高度为0 阅读全文
posted @ 2018-02-18 18:35 L与S的小甜菜 阅读(315) 评论(0) 推荐(0) 编辑
摘要: img 和 input都是内容,剧中用text align 阅读全文
posted @ 2018-02-17 20:27 L与S的小甜菜 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 6 51 52 53 54 爱宠知识 55 56 养狗比养猫更健康 57 养狗比养猫更健康 58 ... 阅读全文
posted @ 2018-02-17 12:17 L与S的小甜菜 阅读(100) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> .box{ height: 40px; background-color: #eee; border-top: orange solid 3px; border-bottom: 1px solid #aaa; } .box2{ ; width: 600 阅读全文
posted @ 2018-02-16 17:01 L与S的小甜菜 阅读(285) 评论(0) 推荐(0) 编辑
摘要: margin 0 auto是盒子包含盒子时的水平居中 text align是盒子包含内容时的水平居中 阅读全文
posted @ 2018-02-16 16:06 L与S的小甜菜 阅读(81) 评论(0) 推荐(0) 编辑
摘要: table{ width: 200px; height: 300px; border: red solid 1px; border-collapse: collapse; } td{ border: red solid 1px; } </style> </head> <body> <table > 阅读全文
posted @ 2018-02-16 11:36 L与S的小甜菜 阅读(60) 评论(0) 推荐(0) 编辑
摘要: cellspacing="0" 单元格之间的距离cellpadding=”2” 内容距边框的距离如果直接给表格用align=”center” 表格居中如果给tr或者td使用 ,tr(一行的内容)或者td内容居中。<table border="50"表示单元格边框像素值colspan=”2” 合并同一 阅读全文
posted @ 2018-02-13 10:07 L与S的小甜菜 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 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)) #可以使用匿名函数 print(... 阅读全文
posted @ 2018-02-08 09:44 L与S的小甜菜 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 元祖不可以改变;列表可变,列表用[]元祖用(),字典和列表都用{} 集合:无序 元祖:有序 列表:有序 字典:无序 数字,元祖,字符串是不可以修改的 对比下列两个程序的差异 全局变量对于可变元素可以不声明修改 name=['linnan','syh'] def change(): name.append("mm") change() print(name) ******** name=... 阅读全文
posted @ 2018-02-07 21:40 L与S的小甜菜 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 3. 如用pip安装,常用命令就是:pip install simplejson # 安装Python包pip install --upgrade simplejson # 升级Python包pip uninstall simplejson # 卸载Python包 jupyter : ctrl+回车 阅读全文
posted @ 2018-02-02 14:46 L与S的小甜菜 阅读(116) 评论(0) 推荐(0) 编辑