Category:Program Language
-
Time:2021-3-7
Before JDK7, switch can only support byte, short, char, int or their corresponding encapsulation classes and enum types. After JDK7, switch supports string type. In the switch statement, the value of the expression cannot be null, otherwise NullPointerException will be thrown at runtime. Null cannot be used in the case clause, otherwise compilation errors will […]
-
Time:2021-3-7
Modules allow us to divide the code in the crates into groups to improve readability and reusability. The module also controls the privacy of the project, that is, whether the project can be used by external code (public) or internal implementation details but not for external use (private). For example, let’s write a library box […]
-
Time:2021-3-7
A series of articles: Let’s talk about the career planning of developers Talk about developer career planning 2 Talk about the choice of developer career planning industry and good company Talk about the team, position and income of developer career planning Talk about 520 special of developer career planning How to consider career development From […]
-
Time:2021-3-7
Introduction of socket Socket, also known as “socket”, will send data through UDP / TCP protocol to realize simple communication between two machines. Note: if you want to use socket to realize simple communication between two machines, please make sure that the two machines are connected to the same local area network. Of course, socket […]
-
Time:2021-3-7
A series of articles: Notes on Linux 1 Linux miscellany root file system Linux miscellany 2 /Boot system boot related, kernel, initrd, grub, boot loader This work adoptsCC agreementReprint must indicate the author and the link of this article The wind in June
-
Time:2021-3-7
import asyncio import time import numpy, random import pyppeteer async def main(): IP = “xxxxx” ා proxy IP Port =? XXX? Proxy port browser = await pyppeteer.launch({‘headless’: False, ‘args’: [ ‘–window-size={1300},{600}’ ‘–disable-extensions’, ‘–hide-scrollbars’, ‘–disable-bundled-ppapi-flash’, ‘–mute-audio’, ‘–no-sandbox’, ‘–disable-setuid-sandbox’, ‘–disable-gpu’, ‘–disable-infobars’ f’–proxy-server={ip}:{port}’ ], ‘dumpio’: True }) page = await browser.newPage Open a new page await page.goto (‘url […]
-
Time:2021-3-7
This article mainly introduces the spring boot Date Converter implementation example analysis, the article through the example code is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to Note: this function is not unique to springboot, spring MVC also has 1、 How to use it Create […]
-
Time:2021-3-7
The following example uses a custom structure type StructA struct { FieldA string `form:”field_a”` } type StructB struct { NestedStruct StructA FieldB string `form:”field_b”` } type StructC struct { NestedStructPointer *StructA FieldC string `form:”field_c”` } type StructD struct { NestedAnonyStruct struct { FieldX string `form:”field_x”` } FieldD string `form:”field_d”` } func GetDataB(c *gin.Context) { var […]
-
Time:2021-3-7
Download python3.6.5 installation package 1. Upload the installation package. Open the terminal, use the command CD to enter the file folder [email protected]:~/workspace$pwd /home/python/workspace 2. Unzip the file tar xfzPython-3.6.5.tgz Note: the XFZ command is used here, but the – xvzf command is not recommended, because the released folder needs root permission to be changed or […]
-
Time:2021-3-7
This paper introduces the functions and usage of classes and objects in PHP. The details are as follows: 1. Class and object Class is the basic concept of object-oriented programming. It is the structure description of a kind of things and an abstract concept. Object is a concrete instance of a kind of things and […]
-
Time:2021-3-6
To show rust where to find the project in the module tree, we use the same path as when browsing the file system. If you want to call a function, you need to know its path. Paths can take two forms:The absolute path starts at the root of the crate by using a create name […]
-
Time:2021-3-6
A series of articles: awesome rust Mongodb officially released mongodb rust driver Rust organization on GitHub Learn rust through examples Rust implementation of common algorithms Lightweight Windows GUI tool library based on Rust Chinese English comparison of rust language terms Official weekly diary of rust Small and fast rust asynchronous runtime SMOL Microsoft open source […]