摘要: package main import ( "fmt" "gorm.io/driver/mysql" "gorm.io/gorm" "gorm.io/gorm/logger" "log" "os" "time" ) type User struct { Id int64 Name string Ag 阅读全文
posted @ 2023-05-22 11:12 文所未闻 阅读(63) 评论(0) 推荐(0) 编辑
摘要: package com.lzw.flieslice; import java.io.File; import java.io.RandomAccessFile; import java.nio.channels.FileChannel; import java.nio.file.Files; imp 阅读全文
posted @ 2023-05-04 10:47 文所未闻 阅读(198) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "os" ) func createMaze(filename string) [][]int { file, err := os.Open(filename) if err != nil { fmt.Println("文件打开错误", err 阅读全文
posted @ 2023-02-18 15:05 文所未闻 阅读(10) 评论(0) 推荐(0) 编辑
摘要: public static void readAccess() throws Exception { String filename = "D:/file_sum/2.txt"; RandomAccessFile raf = new RandomAccessFile(filename, "rw"); 阅读全文
posted @ 2022-12-28 13:40 文所未闻 阅读(66) 评论(0) 推荐(0) 编辑
摘要: use mysql; select user,host from user; update user set host = '%' where user = 'root' host=%含义 %是通配符,host标识是设置允许访问的ip地址 例如: * host=localhost:只允许本机访问 * 阅读全文
posted @ 2021-08-22 21:20 文所未闻 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 首先确保我们的Linux主机和我们的Windows主机在同一个局域网内 阅读全文
posted @ 2021-08-22 21:16 文所未闻 阅读(668) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_38425719/article/details/100012533 阅读全文
posted @ 2021-06-23 19:49 文所未闻 阅读(1236) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 首字母变大写 3 * 4 * @param str 字符串 5 * @return {String} 6 */ 7 public static String firstCharToUpper(String str) { 8 char firstChar = str.charAt( 阅读全文
posted @ 2021-06-22 16:47 文所未闻 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 public class DBTools { 2 3 private volatile boolean flag = false; 4 5 public synchronized void backupA(){ 6 try { 7 while(flag){ //当为true阻塞 8 this.w 阅读全文
posted @ 2021-06-22 12:51 文所未闻 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * @param arr 给定一个字符串集合 3 * @return 返回字符串中不包含重复字符的字符串集合 4 */ 5 public List<String> findStr(List<String> arr) { 6 List<String> ans = new ArrayLi 阅读全文
posted @ 2021-06-19 14:07 文所未闻 阅读(190) 评论(0) 推荐(0) 编辑