Go interface: why is nil interface not equal to nil
Static and dynamic characteristics of interface
The static characteristic of the interface is that the interface type variable has a static type. For example, the static type of the variable err in var err error is error. Having static types means that the compiler will type check the assignment operation of all interface type variables at ...
Posted by Xzone5 on Fri, 04 Mar 2022 20:45:29 +0100
c language learning notes (continuously updated)
One c file can only have one main function; There can be more than one in a project c documents.
1. Data type
charCharacter data typeshortShort intintegerlongLong integerlong longLonger integerfloatSingle-precision floating-point doubleDouble precision floating point number
View data type bytes Unit in computer:
Bit - bit byte - byte = 8bi ...
Posted by sgt.wolfgang on Fri, 04 Mar 2022 20:35:08 +0100
Standard c library: fputc, fgetc, feof
1,Understand the usage of standard c library fopen (click to jump)
2. fputc writes a character to the file
#include <stdio.h>
int main()
{
FILE *fp;
fp = fopen("./test.txt","w+");
//int fputc(int c, FILE *stream);
fputc('a',fp);
fclose(fp);
return 0;
}
3. fputc writes a string to a ...
Posted by kpulatsu on Fri, 04 Mar 2022 20:31:51 +0100
Fast offline deployment of K8s and KubeSphere with KubeKey
Authors: Yin min, KubeSphere Ambassador, head of Hangzhou station of KubeSphere community user committee
1, KubeKey introduction
KubeKey (hereinafter referred to as KK) is an open source lightweight tool for deploying Kubernetes clusters. It provides a flexible, fast and convenient way to install only Kubernetes/K3s, or both Kubernetes/K3 ...
Posted by TheSeeker on Fri, 04 Mar 2022 20:25:14 +0100
SST import without dependency on Nebula Exchange
This article tries to share the steps of SST writing in Nebula Exchange in a minimum way (stand-alone, containerized Spark, Hadoop and Nebula Graph). This article applies to v2 5 or above versions of Nebula Exchange.
Original link:
Foreign visits: https://siwei.io/nebula-exchange-sst-2.x/
Domestic visits: https://cn.siwei.io/nebula-exc ...
Posted by R0bb0b on Fri, 04 Mar 2022 20:21:59 +0100
Scala basic learning 01
The first Scala program
interactive programming
hadoop@master:~/desktop/ScalaLearn$ scala
Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_162).
Type in expressions for evaluation. Or try :help.
scala> 1+1
res0: Int = 2
scala> println("Hello World!")
Hello World!
scala>
Script form
gedit HelloWorld. ...
Posted by NottaGuru on Fri, 04 Mar 2022 20:20:13 +0100
Understand the spring 5 mock test
prefaceMany times, we developers are used to using postman to test the interface directly, but the disadvantage of using postman is that IT is only suitable for developers to test themselves, which is not convenient for the team to share, and IT is difficult to cover the logical branch methods of an interface involving all levels. When IT comes ...
Posted by jacinthe on Fri, 04 Mar 2022 20:18:13 +0100
pytorch tensor data basic operation
pytorch data operation
Getting started and building data
Guide Package
import torch
Create a row vector (a special tensor) What is a tensor: a tensor represents an array of values that may have multiple dimensions. A tensor with one axis corresponds to a vector in mathematics; A tensor with two axes corresponds to a mathematical matrix; Te ...
Posted by boardy on Fri, 04 Mar 2022 20:16:55 +0100
Shandong University of science and technology 2021 national ladder competition pre competition individual topic intensive competition -- 4 (shortest path) supplementary questions
Save 007 (upgraded)
In the old movie "Live and Let Die", 007 is caught by a drug dealer on an island in the center of a crocodile pool. He uses an extremely bold way to escape - stepping directly on the brain bags of a series of crocodiles in the pool and jumping ashore! (it is said that the stuntman was bitten by the last crocodile. ...
Posted by Eric! on Fri, 04 Mar 2022 20:14:38 +0100
Card assembly packaging
1. Implementation process of component library
1.1 component: Reusable Vue instances
1.2 Vue component library: a third-party UI Library Based on vue and independent of business, such as element and ant design
2. Implement your own component library
2.1 scaffold generation vue project 2.2 revised project catalogue
2.2.1 m ...
Posted by Brakanjan on Fri, 04 Mar 2022 20:12:15 +0100