12 2024 档案
摘要:答案:不可 package main import "fmt" func main() { // 创建一个map m := make(map[string]int) // 给map赋值 m["one"] = 1 m["two"] = 2 // 获取map的地址 addressOfM := &m //
阅读全文
摘要:ip+port import tkinter as tk from tkinter import messagebox import socket import threading import time import logging import re import asyncio import
阅读全文
摘要:1:先删除之前的 sudo apt-get purge containerd.io docker-ce rm -rf /var/lib/containerd 2 重启一下 reboot 3 重新安装 sudo apt-get install containerd.io docker-ce
阅读全文
摘要:su 和 sudo 是 Linux 和 Unix 系统中用于权限管理的两个命令,它们的主要区别如下: 1. 功能和用途 su (Switch User): su 命令用于切换用户身份,默认情况下,它会切换到超级用户(root)。 使用 su 时,用户需要输入目标用户的密码。 例如,执行 su 后,系
阅读全文
摘要:git add 之后 如何撤销 1. 使用git reset命令: git reset HEAD <文件名> 这个命令将会将文件从暂存区中移除,但是保留对文件的修改。 2. 使用git restore命令: git restore –staged <文件名> 这个命令将会将文件从暂存区中移除,但是保
阅读全文
摘要:地址 https://github.com/PHPGangsta/GoogleAuthenticator 示例 index.php <?php require_once 'PHPGangsta/GoogleAuthenticator.php'; $ga = new PHPGangsta_Google
阅读全文
摘要:方式1 package main import ( "fmt" "sync" "time" ) func doWork(id int, resultChan chan<- int, wg *sync.WaitGroup) { defer wg.Done() // 表示goroutine完成 time
阅读全文

浙公网安备 33010602011771号