es6 grammar commonly used in work

let and const In JavaScript, we used to use key var to define variables. After ES6, we added two keywords to define variables, let and const. For variables, variables defined by var in ES5 will be raised to all functions and statements in scope, while variables defined by let in ES6 will not. Variables declared by let will est ...

Posted by onyx on Tue, 07 May 2019 02:05:38 -0700

TensorFlow|Transformer-based Natural Language Inference (SNLI)

After going through the process of reading the paper, the source code and Bert source code, I sorted out my ideas, implemented a Transformer, and built a small Transformer to do some SNLI tasks. 1.Transofrmer The principle is not repeated anymore. It's good in other blogs. For example: https://jalammar.github.io/illustrated- ...

Posted by zimick on Mon, 06 May 2019 20:40:39 -0700

logging module print log

https://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/00138683229901532c40b749184441dbd428d2e0f8aa50e000 https://www.cnblogs.com/nancyzhu/p/8551506.html https://www.cnblogs.com/deeper/p/7404190.html https://blog.csdn.net/sollor525/article/details ...

Posted by cyball on Sun, 05 May 2019 23:40:38 -0700

Python Crawler Introduction Tutorial 61-100 Write about a crawler that runs into a backcrawl and destroys it!

The python3 crawler encountered a backcrawl When you excitedly open a web page and find that the resources inside are great, you can download them in batches. Then thank you for writing a crawler download. As a result, after an operation, you find that the website has anti-crawling measures, which is embarrassing. In the next few articles, we w ...

Posted by Spiz on Sun, 05 May 2019 20:55:37 -0700

Spring Security integrates JWT (front-end and back-end separation based on Spring Boot 2.x)

Publicity website http://xb.exrick.cn Online Demo http://xboot.exrick.cn Open Source Github Address https://github.com/Exrick/x-boot Developing documents https://www.kancloud.cn/exrick/xboot/1009234 Get the full version http://xpay.exrick.cn/pay?xboot JWT JSON Web Token (JWT) is an open standard (RFC 7519), which defin ...

Posted by bulldorc on Sat, 04 May 2019 06:30:39 -0700

Pthon3 Web Crawler System Learning: First Lecture on Basic Library urllib

The common base libraries for crawlers in python3 are urllib and requests This article mainly describes the relevant content of urllib urllib consists of four modules: requests - Simulate sending requests error - exception handling module parse - Tool Module on URL Processing Robot Parser - Determine crawlable content on a site by identify ...

Posted by tempa on Thu, 02 May 2019 21:40:38 -0700

Talking about the Understanding and Implementation of AOP

In a previous discussion with a bull, I found that my knowledge of AOP was not thorough enough, so in the recent period of study, I combed the AOP related knowledge again. What is AOP AOP refers to facet-oriented programming, which mainly extracts some common functions required by business logic from the business implementatio ...

Posted by BlackenedSky on Thu, 02 May 2019 01:40:38 -0700

Python crawler introductory tutorial 63-100 Python font anti-crawling one, no way, this must be written, anti-crawling Article 3

Background metasomatism In fact, there are many websites involved in the anti-climbing circle. At present, websites often bullied by the reptile coder, cat's eye movies, automobile homes, public comments, 58 cities, day-eye checks... There are still many, tens of millions of skilled technicians, there are always various anti-climbing technologi ...

Posted by Usagi on Wed, 24 Apr 2019 17:27:34 -0700

python day08 file operation

Summary of 2010.4.8 S21 day08 Notes I. system For computers, whether it is file storage/network transmission, data is essentially binary (0101010101), such as: video/picture/file stored on computers are binary; expressions/text/language/video sent by QQ/Wechat chat are all binary. Radix: Binary system, internal computer. 8 binary system In gen ...

Posted by fatal on Wed, 24 Apr 2019 14:57:34 -0700

Reading and Writing of JSON Data in Python

Preface JSON (JavaScript Object Notation, JavaScript Object Representation) is a lightweight data exchange language JSON is a language-independent text format, and JSON data format is language-independent. The characteristics of JSON data format: Objects are represented as key-value pairs Data is separated by commas Curly brackets save object ...

Posted by JH5 on Wed, 24 Apr 2019 12:45:35 -0700