20190127 - split a file into multiple new files

1. Split one file into five files Train of thought: 1. First, split it into multiple new files. The new file name needs to be defined. Use file name? No to define the name of the new file 2. The content of the new file should be stored by file content. When the new file is written, use file content = '' to empty the new file content 3. When to ...

Posted by aveach on Sat, 30 Nov 2019 15:40:26 -0800

One of the common functions in MySQL

Built-in function 1. Get the current time date [format (now(),% Y% m% d% H% I ') Get current time select date_format(now(),'%Y%m%d%H%i') 2. Concat string (STR1, STR2,...) ) Concatenate string select CONCAT('hello',' world!') 3. Group concat field by group ([distinct] field to be connected [Order BY ASC/DESC sort field] [Separator 'Separat ...

Posted by transfield on Sat, 30 Nov 2019 02:11:21 -0800

Data Types and Methods

1. None 2. Integer (int) 3. Boolean Types (bool) 4. String (str) upper/lower: letter case conversion Upper: convert lower case to upper case lower: uppercase to lowercase v1 = 'alex' v2 = v1.upper() print(v2) #'ALEX' v3 = v2.lower() print(v3) #'alex' isdigit: Determines whether a string is a number v1 = 'alex' date1 = ...

Posted by rigbyae on Fri, 29 Nov 2019 21:39:04 -0800

properties/yml loads configuration information by using @ ConfigurationProperties

yml loads configuration information through the way of @ ConfigurationProperties and @ value 1. There are two ways to bind values: @ConfigurationProperties @Value Priority: if you mix @ ConfigurationProperties, the priority is higher than @ value, but they can complement each other; @The data of ConfigurationProperties comes from app ...

Posted by kaumilpatel on Thu, 28 Nov 2019 00:52:56 -0800

Spring-IOC implementation [02-XML configuration file mode]

XML configuration mode Attribute injection Construction injection: create a parametric construction method and a nonparametric construction method Injection in application.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XML ...

Posted by HaXoRL33T on Wed, 27 Nov 2019 07:27:12 -0800

Fourth -- using selenium to capture and analyze stock data

This article is the fourth in a series of articles "from introduction to persuasion". It can also be used as the previous onePuppeter applicationFollow up. Readers of this article: primary users of python, students who want to learn about crawlers or data grabbing. Want to know the users of selinum and beiotifulsoup Background: python ...

Posted by haku on Tue, 26 Nov 2019 20:18:47 -0800

Examples of Android Q dark themes

Learn how dark themes work, first-hand information is Official Documents Corresponding Google Sample Official document: DayNight - Adding a dark theme to your app: https://medium.com/androiddevelopers/appcompat-v23-2-daynight-d10f90c83e94Official document: Dark theme:https://developer.android.com/preview/features/darkthemeOfficial case: andro ...

Posted by bdurham on Tue, 26 Nov 2019 19:07:52 -0800

Two ways of Android calling system api recording (MediaRecorder, AudioRecord)

Crap Authority, authority, authority, must first obtain the recording authority, and other things will be delayed. In addition, the new version of Android 10 system will adjust the recording and introduce the concept of recording focus. That is to say, the microphone can only be used by one APP before it can be used only when it is disconnect ...

Posted by kulin on Tue, 26 Nov 2019 13:24:12 -0800

Python crawls the movie review of Douban from "ice and snow 2"

Preface The text and pictures of the article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. Author: Liu Quan @ CCIS Lab PS: if you need Python learning materials, you can click the lin ...

Posted by HyperD on Mon, 25 Nov 2019 06:08:55 -0800

TensorFlow learning: BP, RBF

BP algorithm is also called delta algorithm It's a way to solve parameters Case study; Required input (5, 10), output (0.01, 0.99) Hypothesis: Calculate the output of h1: In the same way: Calculate the output of o1, o2: Calculated output error: Calculation: Known: ...

Posted by KindMan on Sun, 24 Nov 2019 13:06:12 -0800