原创 STL--學習
<algorithm>頭文件: 查找檢測操作: adjacent_find 查找兩個相鄰(Adjacent)的等價(Identical)元素 all_of C++11 檢測在給定範圍中是否所有元素都滿足給定的條件 any_of C++
原创 Prioject Euler problem2 :Even Fibonacci numbers
問題描述: Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2,
原创 pyrhon3實現數據隨機漫步
實現小規模隨機數據漫步from random import choice class RandomWalk(): def __init__(self, num_points=5000): self.num_po
原创 數據結構——>線性表——>順序表——>插入以及擴展
順序表是線性表的順序存儲結構形勢: 1.線性表是邏輯結構,表示元素之間的一一對應相鄰關係,順序表存儲結構,指用連續的存儲單元依次存儲線性表中表的數據元素; 2.順表的元素地址: 3.順序表通常使用一維數組來實現,分爲靜態和動態分配,靜態分
原创 Python 爬蟲實例——網頁圖片爬取
代碼 `import requests import os kv={'user-agent':'Mozilla /5.0'} url="https://ss1.bdstatic.com/70cFvXSh_Q1Yn
原创 Priject Euler problem 1:multiples of 3 or 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multip
原创 Proiect Euler problem 4 : Largest palindrome product
首先 在下面的關係式中: P = 100000x + 10000y + 1000z + 100z + 10y + x P = 100001x + 10010y + 1100z P = 11 * (9091x + 910y + 100z
原创 Euler project3: the largest prime factor
問題描述: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? C+