09 2017 档案

摘要:用requests库和BeautifulSoup4库,爬取校园新闻列表的时间、标题、链接、来源。 import requests from bs4 import BeautifulSoup url='http://news.gzcc.cn/html/xiaoyuanxinwen/' res=requ 阅读全文
posted @ 2017-09-27 10:43 23江瑜斌 阅读(146) 评论(0) 推荐(0)
摘要:1.中软国际华南区技术总监曾老师还会来上两次课,同学们希望曾老师讲些什么内容?(认真想一想回答) 希望能讲一些大数据相关内容,深入了解一下。 2.中文分词 (**两项选做,此次作业要求不能雷同。) 阅读全文
posted @ 2017-09-25 11:21 23江瑜斌 阅读(161) 评论(1) 推荐(0)
摘要:列表实例:由字符串创建一个作业评分列表,做增删改查询统计遍历操作。例如,查询第一个3分的下标,统计1分的同学有多少个,3分的同学有多少个等。 score=list('112233345611') print('分数为:') print(score) score.sort() print('排列后:') print(score) print('计数1:') print(score.count('... 阅读全文
posted @ 2017-09-20 11:41 23江瑜斌 阅读(282) 评论(0) 推荐(0)
摘要:实例:输出12个星座符号,以反斜线分隔。 for i in range(12): print(chr(9800+i),end='/') 实例:恺撒密码的编码 m = input("请输入加密字符:") q=ord('a') p=ord('z') print("加密结果为") for i in m: if q<=ord(i)<=p: print(chr(q+... 阅读全文
posted @ 2017-09-18 11:33 23江瑜斌 阅读(236) 评论(0) 推荐(0)
摘要:注意标准库的两种导入与使用方式,建议大家采用.的方式。 对前面的代码进行优化,用for,while,if,def实现: 用循环画五角星 import turtle turtle.color("yellow") turtle.fillcolor("yellow") turtle.speed(8) turtle.begin_fill() for i in range(5): turtle.fo... 阅读全文
posted @ 2017-09-13 17:30 23江瑜斌 阅读(163) 评论(0) 推荐(0)
摘要:Hello World! print("Hello World!!") 简单交互(交互式,文件式)教材P19 name=input("what is your name?\n") where=input("where are you now?\n") age=input("how old are y 阅读全文
posted @ 2017-09-06 11:38 23江瑜斌 阅读(1102) 评论(0) 推荐(0)
摘要:Steam是一个整合游戏下载平台。2002年,Steam系统与CS1.4 Beta一起问世。至目前为止,Steam的运作十分成功广泛,无数游戏发行公司的游戏在此平台上发行、更新。 根据百度数据显示,steam在2012年开始慢慢被国内玩家所了解,慢慢被使用。 网民搜索steam的数量在2017年的7 阅读全文
posted @ 2017-09-04 19:28 23江瑜斌 阅读(844) 评论(0) 推荐(0)