信息标记

信息标记的三种形式 XML(eXtensible Markup Language) YAML(YAML Ain’t Markup Language) JSON(JaveScript Object Notation)

Python

C++面向对象-4

继承和派生 新类拥有原有类的全部属性为继承!原有类产生新类的过程为派生。 原有类称为基类,产生的新类称为派生类。 http://www.dotcpp.com/course/cpp/200027.html 继承方式(派生权限) 公有继承 私有继承 保护继承

CPP

浅尝BeautifulSoup

12345678910111213141516import requestsfrom bs4 import BeautifulSoup #引入BeautifulSoup类url = "https://python123.io/ws/demo.html"r = requests.get(url)print(r.status_code)print("\n")#demo = r.text #html格式信息#soup = BeautifulSoup(demo,"html.parser")#使用html.parser对demo进行html解析soup = BeautifulSoup(open(r"C:\Users\Administrator\Desktop\beautifulsoup\demo.html"))print(soup.prettify()) BeautifulSoup官方文档

Python

C++面向对象-3

友元函数和友元类 友元的对象可以是全局的一般函数,也可以是其它类里的成员函数,这种叫做友元函数。 友元还可以是一个类,这种叫做友元类,这时整个类的所有成员都是友元

CPP

C++面向对象-2

类的构造函数(Constructor)和析构函数(Destructor)

CPP

C++面向对象

类 & 对象 类是对象的抽象和概括,而对象是类的具体和实例

CPP

C++入坑记(3)

变量初始化问题 当局部变量被定义时,系统不会自动对其初始化; 当全局变量被定义时,系统会初始化为下列值: 数据类型 初始化默认值 int 0 float 0 double 0 char ‘\0’ pointer NULL

CPP

工具小整合

C++入坑记(2)

函数,默认参数的使用 在C++中,允许在自定义函数的形参列表中,给形参一个默认的值,这样在调用的时候如果有实参,那么按照实参传递给形参的方法使用;若调用的时候没有指定对应的实参,则形参将使用默认值。 由于参数的传递顺序是从右至左入栈,所以有默认值的参数必须在放在形参列表的最右边!

CPP

ACM入门(占个位)

A+B for Input-Output Practice(using C++) 1. Problem Description Your task is to Calculate a + b. Too easy?! Of course! I specially designed the problem for acm beginners. You must have found that some problems have the same titles with this one, yes, all these problems were designed for the same aim Input The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line. Output For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input. Sample Input 1 61 20 Sample Output 721

Algorithm
11314151617