Screening Method for Finding Prime Numbers and the Application of Iterators and Generators

The method of finding prime numbers by sieving is: sieving prime numbers to sum numbers: starting with the first prime number 2, remove its multiples; so that the first non-zero number after two must be prime numbers, and delete its multiples... Repe ...

Posted by php_blob on Sat, 07 Sep 2019 07:10:36 +0200

Summary of Leetcode 1-100 Media Difficulty Topics

Write in front After nearly half a month's arrangement, I finally finished the analysis of easy and media topics of the first 100 questions. (The autumn tips have already begun. I wish myself good luck. (Later, I will gradually make up hard in my spa ...

Posted by Entire on Sat, 07 Sep 2019 07:00:25 +0200

Java Iteration Interface: Iterator, ListIterator, and pliterator

1. Introduction When we use for or while loops to traverse the elements of a collection, Iterator allows us not to worry about the location of the index, or even let us not only traverse a collection, but also change it.For example, if you want to delete elements in a loop, the for loop may not always work. With custom iterators, we can iterate ...

Posted by trochia on Tue, 27 Aug 2019 02:42:31 +0200

IDaaS | Easily replace AWS Cognito with Authing + Lambda

Although Amazon Web Services(AWS) is the world's largest market share cloud computing vendor, its products are not perfect either. Cognito (AWS's Identity Certification Solution) and its accompanying Chinese documentation are a negative textbook that is surprisingly difficult to use.Of course, in addition to being not easy to use, there are al ...

Posted by Square1 on Mon, 26 Aug 2019 03:12:11 +0200

sklearn+nltk-Emotional Analysis (Positive and Negative)

Reproduction: https://www.iteye.com/blog/dengkane-2406703 Steps: 1 Data with labels.Data: pos_text.txt Comment Text: neg_text.txt 2 Constructive features: Words, double-word collocations (Bigrams), such as "mobile phone is very", "very useful", "easy to use!" These three collocations are used as classification f ...

Posted by xeross on Sun, 25 Aug 2019 05:51:17 +0200

python-lambda expression and built-in function

Catalog 1 lambda expression (anonymous function) 2 built-in functions 1 lambda expression (anonymous function) Used to represent simple functions lambda expression, in order to solve the case of simple functions: def func(a1,a2): =====> func = lambda a1,a2:a1+a2 # The function gets the return valu ...

Posted by dreglo on Sat, 24 Aug 2019 08:55:33 +0200

Functional interface

1. What is a functional interface? (1) An interface that contains only one abstract method is called a functional interface. (2) You can create the object of this interface through Lambda expression. (If a Lambda expression throws a checked exc ...

Posted by Arenium on Fri, 23 Aug 2019 10:42:40 +0200

03-Django REST framework (03-authentication, privilege, throttling)

Articles Catalogue 1. User login authentication Certification Carding: 1. Use 2. Source code flow 2. Authority 3. Access Frequency Control (Throttle/Limit) Source code flow combing 1. User login authentication a. Some API s require user ...

Posted by celavi on Fri, 23 Aug 2019 10:15:32 +0200

Introduction to Python stack-wide learning

Introduction to Python Full Stack Learning (II) code annotation Single-Line Comments Single-line comments need only be preceded by #. multiline comment Hide multi-line comments with three single quotes or three double quotes """ Note Content """ perhaps ''' Note Content ''' You can use multi-line annotations when writing long pieces of prompt ...

Posted by scliburn on Thu, 22 Aug 2019 11:20:01 +0200

"Glossary" based on Python 3

51. Programming: Instructions for the computer to execute. 52. Code: Commands to be executed by a computer. 53. The underlying programming language: Compared with advanced languages, it is closer to binary languages. 54. Advanced programming languages: It reads like an easy-to-understand language in English. 55. Assembly ...

Posted by mooler on Tue, 13 Aug 2019 15:38:53 +0200