Python 3 realizes the automatic transfer of Baidu cloud disk resources
Python 3 Baidu cloud disk resources auto transfer
Python 3 realizes the automatic transfer of Baidu cloud disk resources, solves the automatic transfer of shared links with passwords, and the automatic transfer of resources without passwords. At the same time, it realizes the transfer of post request ...
Posted by AngelGSD on Wed, 22 Jan 2020 01:31:28 -0800
Details of Attributes, defStyleAttr and defStyleRes in Android
The system's own View can be configured in xml, and the custom View can also be configured in xml. In order to enable the custom View's properties to be configured in xml, the following four steps are required:
1. Add attributes for custom View through < declare styleable >
2. Declare the att ...
Posted by ryanthegecko on Wed, 22 Jan 2020 00:20:38 -0800
Freehand Reality: A Simple Bayesian Classifier
Implementing a Bayesian classifier by hand
Introduction
Code
Summary
Introduction
Naive Bayesian classifier, as its name implies, is a classifier based on Bayesian formula, which converts a posterior probability into a product of a priori probability and different conditional probabilities, and ...
Posted by keldorn on Tue, 21 Jan 2020 17:18:38 -0800
Python common built-in functions
Built in function table
abs()
all()
any()
ascii()
bin()
bool()
bytes()
callable()
compile()
complex()
chr()
delattr()
dir()
divmod()
enumerate()
eval()
exec()
exit()
filter()
float()
frozenset()
getattr()
globals()
hasattr()
hash()
help()
hex()
id()
input()
int()
isinstance()
iter()
le ...
Posted by 448191 on Tue, 21 Jan 2020 09:19:14 -0800
javaFX displays another form in the event of one button
Button event for the first form:
@FXML
protected void show2Action() throws IOException {
Stage stage = new Stage();
AnchorPane pane = FXMLLoader.load(getClass().getResource("javafxcontroller2.fxml"));
Scene scene = new Scene(pane,300,400);
stage.setScene(scene);
stage.show();
}
The code ...
Posted by met0555 on Tue, 21 Jan 2020 09:09:10 -0800
Android critical instance (6) use of toolbar menu items
Selection of menu bar symbols
There are many menu symbols in Android studio. Select drawable
You can choose any symbol you want
code implementation
public class CrimeListFragment extends Fragment {
public static final String SUBTITLE = "subtitle";
private RecyclerView mRecyclerView;
private CrimeAdpater mCr ...
Posted by bsfischer on Tue, 21 Jan 2020 08:51:04 -0800
Custom ViewGroup - implement custom ViewPager
ViewGroup and View
1. View Group is a container that can hold views. It is responsible for measuring the width and height of subviews or sub controls, and determining the location of subviews or sub controls. Common methods are:
onMesure(): measures the width and height of a subview or child control ...
Posted by GroundZeroStudio on Tue, 21 Jan 2020 03:06:58 -0800
Quick guide to integrating apollo with spring boot
>At present, there are three popular configuration center frameworks on the market: Spring CLoud Config ,Alibaba Nacos as well as Ctrip apollo , we call on the corresponding architecture group to use Apollo.
Work Flow
Simple explanation:
In the above figure, there are three environments FAT, UAT and PROD, each of which has two sets of Confi ...
Posted by sbinkerd1 on Sun, 19 Jan 2020 18:53:25 -0800
Teaching you the python 26 KNN approach algorithm
KNN overview
K-nearest neighbor algorithm is a basic classification and regression method. We only discuss k-nearest neighbor algorithm in classification.
A word summary: near Zhu is red, near Mo is black! Working principle: there is a sample data set, also known as a training sample set, and eac ...
Posted by sri2002 on Sat, 18 Jan 2020 23:04:52 -0800
Java project: voting system
Java project: voting systemToday, I bring you a small voting system written in java. The code is simple and suitable for beginners to practice!Code display:package com.tarena.wgh.servlet;
import java.io.IOException;import java.io.PrintWriter;import java.util.*;
import javax.servlet.ServletContext;import javax.servlet.ServletException;import ja ...
Posted by chanfuterboy on Sat, 18 Jan 2020 06:21:12 -0800