自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 什么是API?

编者按:何为API?如果你在百度百科上搜索,你会得到如下结果:API(Application Programming Interface,应用程序编程接口)是一些预先定义的函数,目的是提供应用程序与开发人员基于某软件或硬件得以访问一组例程的能力,而又无需访问源码,或理解内部工作机制的细节。那么再通俗一点来说,API究竟是什么呢?在我学习软件开发之前,API听起来似乎像是一种啤酒。而现在,我开始...

2019-05-02 17:59:25 1290

转载 什么是REST?

What 什么是REST表述性状态转移。一种web 服务的架构风格Who 谁发明的RESTroy fielding 于2000年写的论文核心资源统一接口状态转移REST成熟度模型http表示抽象的资源用http动词来表述对资源的增删改查REST的问题如何聚合多个接口返回的内容浏览api如何能像浏览网页那样资源表述用名词来表述资源,用http方法来表述CRUDurl...

2019-05-02 17:57:27 130

原创 ex_13_01.py

// An highlighted blockimport urllib.request, urllib.parse, urllib.errorimport xml.etree.ElementTree as ETimport sslimport requeststxt = requests.get(url="http://py4e-data.dr-chuck.net/comments_...

2019-05-01 18:23:31 143

原创 获取网页上的文件、页面等的文件类型,文件内容,所在服务器最后修改时间

固定代码,将文件所在的URL输入即可// An highlighted blockimport socketmysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)mysock.connect(('data.pr4e.org', 80))cmd = 'GET https://www.baidu.com/ HTTP/1.0\r\...

2019-04-18 22:32:54 652

原创 Coursera-python-第十一章-正则表达式-习题-ex_11_01

题目:将文件中的数字都提取出,并对数字进行求和。// An highlighted blockimport re #导入正则表达式的包name = input("Enter File name:")file = open(name) #打开文件y = [] #初始化一个列表accumulation = 0 #初始化一个i...

2019-04-18 15:27:59 130

原创 ex_10_02

题目:提取文本中以From开头的行,并计算某一数值出现的次数。// An highlighted blockname = input("Enter file:")if len(name) < 1 : name = "mbox-short.txt"handle = open(name)count = dict() #初始化一个字符串count_small = dict()...

2019-04-05 14:50:10 117

原创 The Cat in the Hat一般指戴帽子的猫--From TOEFL

今天听听力One Pass 回放的时候,突然听到了被cue到频率极高的《The Cat in the Hat》,就到看了一遍电影版的!很梦幻的一部电影,神奇的是我竟然完整的把这部电影看完了!好像也没有什么感受!就这样吧!...

2019-04-05 13:47:28 409

原创 Coursea-py4e-ex_09_04中的代码解析-字典-dictionary

// An highlighted block'''9.4 Write a program to read through the mbox-short.txt andfigure out who has sent the greatest number of mail messages.The program looks for 'From ' lines andtakes the s...

2019-04-04 20:20:38 303

原创 ex_08_05错误:list index out of range

// An highlighted block'''Open the file mbox-short.txt and read it line by line.When you find a line that starts with 'From ' like the following line:From [email protected] Sat Jan 5 09:...

2019-04-03 23:47:37 205

原创 py4e-ch8-list-ex08_05

// A code blockvar foo = 'bar';// An highlighted block'''8.4 Open the file romeo.txt and read it line by line. For each line,split the line into a list of words using the split() method.The pro...

2019-04-03 23:34:24 450

原创 选课系统UML图

1用例描述1.1系统参与者本系统的参与者有学生,教师,管理员和游客。1.1.1学生的用例图描述在本系统中,学生能够有查询课程信息并选课的功能。在查询课程信息的功能中,扩展了查询已选课程信息及检索课程的功能;在选课功能中,扩展了退课和调课的功能。其中,后两个用例与上一级用例间的关系是extended,即后面的用例用来增强前面的用例的功能。每个功能的具体描述如下表所示:功能描述...

2019-04-02 16:34:30 40187 3

原创 安卓、从客户端请求到服务器端并连接数据库

结果:遇到的问题:1、数据库连接错误,没有导入连接数据库的包!2、参数传送错误!3、在manifest中加入权限,如果出现permission denied 13

2019-04-01 23:10:05 689

原创 Mysql连接错误:Lost connection to Mysql server at 'waiting for initial communication packet'

MySQL无法打开,出现Mysql连接错误:Lost connection to Mysql server at 'waiting for initial communication packet’的错误1.重启一下电脑就好了!可能是因为太久没有打开数据库,所以连接断开了!2.在网上搜到的都是在Linux系统下的方法,抱着试一试的心态,重启。结果就连接上了!3.第一次知道了系统变量的设置是做...

2019-03-31 19:02:29 2023

原创 COURSEA-PYTHON-ex_07_02

题目:‘’’Write a program that prompts for a file name,then opens that file and reads through the file,looking for lines of the form:X-DSPAM-Confidence: 0.8475Count these lines and extract the fl...

2019-03-31 15:35:06 313

原创 COURSEA-PYTHON-ex_07_01

题目:7.1 Write a program that prompts for a file name,then opens that file and reads through the file,and print the contents of the file in upper case.Use the file words.txt to produce the output be...

2019-03-31 14:53:33 438

原创 记录我的编程之路

First day in CSDN欢迎来到我的CSDN博客看到很多的前辈都有记录自己错误的习惯,同时也能够分享自己对某些功能的实现,从CSDN获得了很多,不说能做贡献吧,希望能够记录自己在编程路上的磕磕绊绊与实现是的小喜悦!功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants...

2019-03-29 20:40:48 80

空空如也

空空如也

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

TA关注的人

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