/*****home和头部开始**************************/ #home { margin: 0 auto; width: 72%;/*原始65*/ min-width: 980px;/*页面的最低宽度,也就是页面顶部的宽度*/ background-color: #fff; padding: 30px; margin-top: 50px; margin-bottom: 50px; box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3); } /*头部导航栏*/ #navigator { font-size:15px; border-bottom: 1px solid #ededed; border-top: 1px solid #ededed; height: 60px;/*导航栏高度,原始50*/ clear: both; margin-top: 25px; } /*导航栏设置,可以自定义导航栏的目录*/ #navList { min-height: 35px; float: left; } #navList li { /*每一个栏目节点*/ float: left; margin: 0 5px 0 0; /*这里原来是0 40px 0 0 */ } #navList a { /*栏目文字的格式*/ display: block; width: 5em; height: 22px; float: left; text-align: center; padding-top: 19px; } img { max-width: 100%; }
摘要: ![](https://img2018.cnblogs.com/blog/1500653/201810/1500653-20181026183406550-1044006733.png) ![](https://img2018.cnblogs.com/blog/1500653/201810/1500653-20181026183418530-865693069.png) ![](http... 阅读全文
posted @ 2018-10-26 18:35 杉杉归来 阅读(82) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2018.cnblogs.com/blog/1500653/201810/1500653-20181026182743344-767205281.png) 阅读全文
posted @ 2018-10-26 18:20 杉杉归来 阅读(113) 评论(0) 推荐(0) 编辑
摘要: name = "my \tname is {name} and i am {year} old" print(name.capitalize()) 首字母大写 print(name.count("a")) 统计有a字母的数量 print(name.center(50," ")) 打印50个字符,不够 阅读全文
posted @ 2018-10-18 17:41 杉杉归来 阅读(110) 评论(0) 推荐(0) 编辑
摘要: key value ''' info = { '001':"陈翔", '002':"妹大爷", '003':"茅台", '004':"瑞土", '005':"蘑菇头", '006':"腿腿", } 创建 print(info) print(info['001']) info["001"] ="吴妈" 阅读全文
posted @ 2018-10-18 17:37 杉杉归来 阅读(77) 评论(0) 推荐(0) 编辑
摘要: names = ["Zhangsan"," Lisi"," Wangwu"," Zhoumazi"] import copy names = ["1Zhangsan"," Lisi"," xWangwu",["Wangshanfeng","Paopao"], "Zhoumazi"] print(na 阅读全文
posted @ 2018-10-18 17:35 杉杉归来 阅读(633) 评论(0) 推荐(0) 编辑
摘要: for i in range(10): print("loop ",i)age_girl =18for i in range(3): guess_age = int(input("guess age:")) if guess_age == age_girl : print("yes,you got it. ") break elif guess_... 阅读全文
posted @ 2018-09-28 15:59 杉杉归来 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #while循环#猜女孩的年龄,有三次机会age_girl = 18count = 0while True: if count == 3: break guess_age = int(input("guess age:")) if guess_age ==age_girl: print("yes,y 阅读全文
posted @ 2018-09-28 15:54 杉杉归来 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #输入密码不显示(隐藏)import getpassusername = input("username:")password = getpass.getpass("password:")print(username,password) #判断用户名和密码是否输入正确 _username = 'al 阅读全文
posted @ 2018-09-28 15:37 杉杉归来 阅读(258) 评论(0) 推荐(0) 编辑
摘要: name = input("name:")age = int(input("age:")) #integer整型job = input("job:")salary= input("salary:")info1 = '''-------- info of %sName:%sAge:%dJob:%ssalary:%s''' %(name,name,age,job,salary)print(info1... 阅读全文
posted @ 2018-09-28 15:31 杉杉归来 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 注:结果打印出来的是: My name is ShanShan ShanShanPaoChe Ge ShanShan 阅读全文
posted @ 2018-09-28 15:26 杉杉归来 阅读(137) 评论(0) 推荐(0) 编辑