- 博客(6)
- 收藏
- 关注
原创 在数据结构中的代码学习之——链表
线性表中的单链表typedef struct LNode{ Elemtype data; struct LNode *next; }LNode,*Linklist;双链表typedef struct DLNode{ Elemtype data; struct DLNode *next; struct DLNode *prior; }DLNode;假设有n个元素已经存在数组a中,用尾插法建立链表C尾...
2018-06-12 12:42:58
231
原创 一些C++小程序(二)
//构造一个学生的结构体#include #include #include using namespace std; struct Student { int num; string name; char sex; int age; }; int main() { Student stu = { 97001,"LinLin",'F',19 }; cout << "NUM:"
2017-11-27 22:39:43
795
原创 一些C++的小程序(一)
输出hello word #include using namespace std; int main() { cout << "hello,word\n"; return 0; } 查找int的空间大小 #include using namespace std; int main() { cout << "The size of an int is :\t
2017-11-27 22:31:35
2929
原创 一个小爬虫 从网页获取信息(图片下载)
一个小爬虫从贴吧中批量获取图片 import re import urllibdef getHtml(url): page=urllib.urlopen(url) html=page.read() return htmlprint getHtml("http://tieba.baidu.com/p/4926599520?red_tag=v1481313036")这个会自动获取
2017-04-30 19:41:32
446
原创 第一个照着书写了一段代码,但就是两段代码无法使用,成独立的了:(
这个在学习一个类模块的时候创建的两个python的脚本文件,一个文件是包含定义Product类的代码,另一个是则包含将使用这个类的脚本。 class Product: def __init__(self,description,price,quantity): self.__description = description self.__price=pric
2017-04-08 13:35:09
381
原创 时隔八年终于开了第二个博客,前面一个163夭折了
在写下这一篇的时候,已经是断断续续学了几个月的python,但效果不好,准备取回记忆重新开始学一遍。 距离重新取回记忆开始学习python已经一个半月了,已经到了不得不开始编程之旅了。 虽然我并不是CS,但是也准备在研究生的时候跨到CS去,加油吧。
2017-04-08 13:23:13
322
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人