GoLang
xxxxxxxxxx
package main
â
import "fmt"
â
func main() {
â
m := make(map[string]int)
â
m["k1"] = 7
m["k2"] = 13
â
fmt.Println("map:", m)
â
v1 := m["k1"]
fmt.Println("v1: ", v1)
â
fmt.Println("len:", len(m))
â
delete(m, "k2")
fmt.Println("map:", m)
â
_, prs := m["k2"]
fmt.Println("prs:", prs)
â
n := map[string]int{"foo": 1, "bar": 2}
fmt.Println("map:", n)
}
map: map[k1:7 k2:13] v1: 7 len: 2 map: map[k1:7] prs: false map: map[bar:2 foo:1]
Linux - Comment installer anc-api-tools
Linux - Comment installer curvedns
Python - Vérifier si un nombre est positif, négatif ou 0
Linux - Comment installer zenmap
C - Compter le nombre de chiffres dans un entier
C++ - VĂ©rifier si un nombre est premier ou non
JavaScript - VĂ©rifier si une chaĂźne commence et se termine par certains caractĂšres
C++ - Vérifier l'année bissextile
C - Trouver le plus grand nombre à l'aide de l'allocation de mémoire dynamique
Kotlin - Arrondir un nombre à n décimales
Kotlin - Inverser un nombre
Linux - Comment installer xbitmaps
Kotlin - Trouver la factorielle d'un nombre
C++ - Convertir un nombre binaire en décimal et vice-versa
Linux - Comment installer zstd
Java - Inverser un nombre
Linux - Comment installer zfs-test
Kotlin - Calculer la somme des nombres naturels
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month