原创 Python爬取豆瓣前250部電影

爬取豆瓣排名前250的電影 1.準備工作 ​ 編寫代碼之前,安裝好以下庫:json、request、re、time. 2.爬取分析 ​ 需要爬取的目標站點爲:https://movie.douban.com/top250?star

原创 《深度學習的數學》學習筆記

深度學習的數學 本文爲學習了湧井良幸和湧井貞美所著的《深度學習的數學》後的讀書筆記及總結。 文章目錄第一章 神經網絡的思想1-1 神經網絡和深度學習1-2 神經元的數學表示1-3 激活函數:將神經元的工作一般化1-4 什麼是神

原创 BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding 閱讀筆記

BERT: 論文閱讀筆記 1. abstract ​ BERT是由Google AI Language發佈,BERT即 Bidirectional Encoder Representations from Transforme

原创 leetcode_Roman to Integer

    def romanToInt(self, s):         """         :type s: str         :rtype: int         """         sumR=0         k=

原创 Palindrome Number 判斷迴文

    def isPalindrome(self, x):         """         :type x: int         :rtype: bool         """         sum=0        

原创 leetcode_Longest Common Prefix

    def longestCommonPrefix(self, strs):         """         :type strs: List[str]         :rtype: str         """    

原创 leetcode_Valid Parentheses

括號匹配,利用了stacks     def isValid(self, s):         """         :type s: str         :rtype: bool         """         set_

原创 leetcode_Reverse Integer

最後需要檢查一下返回值的大小 def reverse(x):     """     :type x: int     :rtype: int     """         re=0         retur=0         if

原创 Leetcode_twosum

採用了最笨的方法: def twoSum(nums, target):     """     :type nums: List[int]     :type target: int     :rtype: List[int]    

原创 HTTP HEADER 詳解

Header解釋示例Accept-Ranges表明服務器是否支持指定範圍請求及哪種類型的分段請求Accept-Ranges: bytesAge從原始服務器到代理緩存形成的估算時間(以秒計,非負)Age: 12Allow對某網絡資源的有效的

原创 TF-IDF提取英文文章特徵詞

# -*- coding: utf-8 -*- """ Created on Wed Mar 28 16:49:38 2018 @author: 47899 """ import codecs import os import nltk

原创 2017數模打怪升級總結

一、2017XX數學建模比賽1、 第一次在數模比賽中用到了Matlab作圖。2、知道了.mat是Matlab的數據文件後綴。3、處理過的數據及時保存。4、圖片保存成bpm格式,爲了避免重新畫,fig格式的圖片最好也保存一遍。5、畫圖得時候