跳到主要内容
极客日志极客日志面向AI+效率的开发者社区
首页博客GitHub 精选镜像工具UI配色美学隐私政策关于联系
搜索内容 / 工具 / 仓库 / 镜像...⌘K搜索
注册
博客列表
Javajava算法

Java 核心语法与并发编程实战示例

综述由AI生成Java 编程语言涵盖基础语法、面向对象、集合框架、文件 IO 及多线程并发等核心领域。本文整理了 66 个关键代码示例,演示变量类型、控制流、类与对象、泛型、Stream API、异常处理以及线程池、锁机制等高级特性。内容适配 JDK 17+,旨在帮助开发者快速回顾语言特性并掌握并发编程实践,为构建稳定系统打下基础。

观心发布于 2026/3/28更新于 2026/6/616 浏览
Java 核心语法与并发编程实战示例

Java 核心语法与并发编程实战示例

摘要:本文详细列举了 66 个 Java 编程中的关键代码示例,涵盖基础语法、面向对象、集合框架、文件 I/O 及多线程并发等核心领域。

环境建议

  • JDK 版本:17(兼容 11+)
  • 构建工具:Gradle / Maven
  • 运行方式:单文件编译运行 javac DemoXX.java && java DemoXX

为避免类名冲突,以下示例类名均独立命名。可将多个示例放入同一工程的 src/main/java 目录下单独运行。

1. Hello World
public class Demo01 {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
2. 变量与类型
public class Demo02 {
    public static void main(String[] args) {
        int age = 18;
        double score = 98.5;
        boolean ok = true;
        char c = 'A';
        long big = 9_223_372_036_854_775_807L;
        var msg = "Java";
        System.out.printf("age=%d, score=%.1f, ok=%b, c=%c, msg=%s\n", age, score, ok, c, msg);
    }
}
3. 类型转换
public class Demo03 {
    public static void main(String[] args) {
        int i = 10;
        long l = i;
        double d = l;
        int j = (int) d;
        System.out.println(j);
    }
}
4. 常量 final
public class Demo04 {
    public static final double PI = 3.141592653589793;
    public static void main(String[] args) {
        System.out.println(PI);
    }
}
5. 运算符
public class Demo05 {
    public static void main(String[] args) {
        int a = 5, b = 2;
        System.out.println(a / b);
        System.out.println(a / (double) b);
        System.out.println(a++);
        System.out.println(++a);
        System.out.println(a & 1);
    }
}
6. 字符串操作
public class Demo06 {
    public static void main(String[] args) {
        String s = " Java ";
        System.out.println(s.trim().toUpperCase().replace(" ", ""));
        System.out.println(String.join(",", "A", "B", "C"));
    }
}
7. 控制台输入
import java.util.*;
public class Demo07 {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            System.out.print("请输入名字:");
            String name = sc.nextLine();
            System.out.println("Hi, " + name);
        }
    }
}
8. 格式化输出
public class Demo08 {
    public static void main(String[] args) {
        System.out.printf("%-10s | %8.2f\n", "Revenue", 12345.678);
    }
}
9. if-else
public class Demo09 {
    public static void main(String[] args) {
        int score = 86;
        String level = score >= 90 ? "A" : score >= 80 ? "B" : "C";
        System.out.println(level);
    }
}
10. switch 表达式
public class Demo10 {
    public static void main(String[] args) {
        String day = "MON";
        int num = switch (day) {
            case "MON", "TUE", "WED", "THU", "FRI" -> 1;
            case "SAT", "SUN" -> 2;
            default -> 0;
        };
        System.out.println(num);
    }
}
11. for 循环
public class Demo11 {
    public static void main(String[] args) {
        int sum = 0;
        for (int i = 1; i <= 100; i++) sum += i;
        System.out.println(sum);
    }
}
12. while/do-while
public class Demo12 {
    public static void main(String[] args) {
        int n = 3;
        do {
            System.out.println(n--);
        } while (n > 0);
    }
}
13. break/continue/标签
public class Demo13 {
    public static void main(String[] args) {
        outer: for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (i == 1 && j == 1) break outer;
                System.out.printf("(%d,%d) ", i, j);
            }
        }
    }
}
14. 增强 for
import java.util.*;
public class Demo14 {
    public static void main(String[] args) {
        for (var x : List.of(1, 2, 3)) System.out.println(x);
    }
}
15. 一维数组
import java.util.Arrays;
public class Demo15 {
    public static void main(String[] args) {
        int[] arr = {3, 1, 2};
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
    }
}
16. 二维数组
import java.util.Arrays;
public class Demo16 {
    public static void main(String[] args) {
        int[][] m = {{1, 2}, {3, 4}};
        System.out.println(Arrays.deepToString(m));
    }
}
17. Arrays 工具类
import java.util.Arrays;
public class Demo17 {
    public static void main(String[] args) {
        int[] a = {1, 3, 5, 7};
        System.out.println(Arrays.binarySearch(a, 5));
        int[] b = Arrays.copyOf(a, 6);
        System.out.println(Arrays.toString(b));
    }
}
18. 方法与重载
public class Demo18 {
    static int add(int a, int b) {
        return a + b;
    }
    static double add(double a, double b) {
        return a + b;
    }
    public static void main(String[] args) {
        System.out.println(add(1, 2));
        System.out.println(add(1.2, 3.4));
    }
}
19. 可变参数
public class Demo19 {
    static int sum(int... xs) {
        int s = 0;
        for (int x : xs) s += x;
        return s;
    }
    public static void main(String[] a) {
        System.out.println(sum(1, 2, 3, 4));
    }
}
20. 类与对象
class User {
    String name;
    int age;
}
public class Demo20 {
    public static void main(String[] args) {
        User u = new User();
        u.name = "Tom";
        u.age = 20;
        System.out.println(u.name + ":" + u.age);
    }
}
21. 封装
class Account {
    private double balance;
    public double getBalance() {
        return balance;
    }
    public void deposit(double amt) {
        if (amt <= 0) throw new IllegalArgumentException();
        balance += amt;
    }
}
22. 构造器与 this
class Point {
    int x, y;
    Point() {
        this(0, 0);
    }
    Point(int x, int y) {
        this.x = x;
        this.y = y;
    }
}
23. static 成员与静态块
class IdGen {
    static long next = 1;
    static {
        System.out.println("class loaded");
    }
    static synchronized long nextId() {
        return next++;
    }
}
24. 继承与 super
class Animal {
    void say() {
        System.out.println("...");
    }
}
class Dog extends Animal {
    @Override
    void say() {
        super.say();
        System.out.println("wang");
    }
}
25. 多态与重写
class Shape {
    double area() {
        return 0;
    }
}
class Circle extends Shape {
    double r;
    Circle(double r) {
        this.r = r;
    }
    @Override
    double area() {
        return Math.PI * r * r;
    }
}
class Square extends Shape {
    double a;
    Square(double a) {
        this.a = a;
    }
    @Override
    double area() {
        return a * a;
    }
}
26. 抽象类
abstract class Transport {
    abstract void move();
}
class Car extends Transport {
    void move() {
        System.out.println("Car go");
    }
}
27. 接口(default/static)
interface Logger {
    void info(String msg);
    default void warn(String msg) {
        System.out.println("WARN " + msg);
    }
    static Logger nop() {
        return m -> {};
    }
}
28. 内部类与匿名类
class Outer {
    private int v = 42;
    class Inner {
        int get() {
            return v;
        }
    }
}
class UseAnon {
    static Runnable r = new Runnable() {
        public void run() {
            System.out.println("anon run");
        }
    };
}
29. 泛型类
class Box<T> {
    private T v;
    public void set(T v) {
        this.v = v;
    }
    public T get() {
        return v;
    }
}
30. 泛型方法与通配符(PECS)
import java.util.*;
class G {
    static <T> void copy(List<? super T> dst, List<? extends T> src) {
        dst.addAll(src);
    }
}
31. 枚举
enum Role {
    ADMIN, USER, GUEST
}
32. ArrayList/LinkedList
import java.util.*;
public class Demo32 {
    public static void main(String[] a) {
        List<Integer> arr = new ArrayList<>();
        arr.add(1);
        arr.add(2);
        Deque<Integer> link = new LinkedList<>();
        link.addFirst(3);
        link.addLast(4);
        System.out.println(arr + " | " + link);
    }
}
33. HashMap/LinkedHashMap/TreeMap
import java.util.*;
public class Demo33 {
    public static void main(String[] a) {
        Map<String, Integer> m1 = new HashMap<>();
        m1.put("b", 2);
        m1.put("a", 1);
        Map<String, Integer> m2 = new LinkedHashMap<>();
        m2.put("b", 2);
        m2.put("a", 1);
        Map<String, Integer> m3 = new TreeMap<>();
        m3.put("b", 2);
        m3.put("a", 1);
        System.out.println(m1.keySet());
        System.out.println(m2.keySet());
        System.out.println(m3.keySet());
    }
}
34. HashSet/LinkedHashSet/TreeSet
import java.util.*;
public class Demo34 {
    public static void main(String[] a) {
        System.out.println(new HashSet<>(List.of(3, 1, 2)));
        System.out.println(new LinkedHashSet<>(List.of(3, 1, 2)));
        System.out.println(new TreeSet<>(List.of(3, 1, 2)));
    }
}
35. Queue/Deque
import java.util.*;
public class Demo35 {
    public static void main(String[] a) {
        Queue<Integer> q = new ArrayDeque<>();
        q.offer(1);
        q.offer(2);
        System.out.println(q.poll());
        Deque<Integer> d = new ArrayDeque<>();
        d.addFirst(1);
        d.addLast(2);
        System.out.println(d.removeLast());
    }
}
36. Comparable/Comparator
import java.util.*;
class Person implements Comparable<Person> {
    String n;
    int a;
    Person(String n, int a) {
        this.n = n;
        this.a = a;
    }
    public int compareTo(Person o) {
        return Integer.compare(a, o.a);
    }
    public String toString() {
        return n + ":" + a;
    }
}
public class Demo36 {
    public static void main(String[] a) {
        List<Person> list = new ArrayList<>(List.of(new Person("A", 30), new Person("B", 20)));
        list.sort(Comparator.comparing(p -> p.n));
        System.out.println(list);
    }
}
37. Stream 基本操作
import java.util.*;
import java.util.stream.*;
public class Demo37 {
    public static void main(String[] a) {
        var r = IntStream.rangeClosed(1, 10).filter(x -> x % 2 == 0).map(x -> x * x).boxed().toList();
        System.out.println(r);
    }
}
38. Optional
import java.util.*;
public class Demo38 {
    static Optional<String> find(boolean ok) {
        return ok ? Optional.of("ok") : Optional.empty();
    }
    public static void main(String[] a) {
        System.out.println(find(true).orElse("N/A"));
    }
}
39. Collectors 分组/分区
import java.util.*;
import java.util.stream.*;
public class Demo39 {
    public static void main(String[] a) {
        record P(String n, int a) {}
        var ps = List.of(new P("A", 18), new P("B", 20), new P("C", 20));
        var byAge = ps.stream().collect(Collectors.groupingBy(P::a));
        var part = ps.stream().collect(Collectors.partitioningBy(p -> p.a >= 20));
        System.out.println(byAge);
        System.out.println(part);
    }
}
40. try-catch-finally & 多重捕获
public class Demo40 {
    public static void main(String[] args) {
        try {
            Integer.parseInt("x");
        } catch (NumberFormatException | NullPointerException e) {
            System.out.println("bad number");
        } finally {
            System.out.println("done");
        }
    }
}
41. 自定义异常
class BizException extends RuntimeException {
    BizException(String m) {
        super(m);
    }
}
42. try-with-resources
import java.io.*;
public class Demo42 {
    public static void main(String[] args) throws Exception {
        try (var in = new ByteArrayInputStream("hi".getBytes());
             var out = new ByteArrayOutputStream()) {
            out.write(in.readAllBytes());
            System.out.println(out);
        }
    }
}
43. NIO.2 文件读写
import java.nio.file.*;
import java.nio.charset.StandardCharsets;
import java.io.IOException;
public class Demo43 {
    public static void main(String[] args) throws IOException {
        Path p = Path.of("/tmp/demo.txt");
        Files.writeString(p, "hello", StandardCharsets.UTF_8);
        System.out.println(Files.readString(p));
    }
}
44. 对象序列化
import java.io.*;
class Book implements Serializable {
    String name;
    Book(String n) {
        name = n;
    }
}
public class Demo44 {
    public static void main(String[] args) throws Exception {
        var f = new File("/tmp/book.bin");
        try (var o = new ObjectOutputStream(new FileOutputStream(f))) {
            o.writeObject(new Book("Java"));
        }
        try (var i = new ObjectInputStream(new FileInputStream(f))) {
            System.out.println(((Book) i.readObject()).name);
        }
    }
}
45. 缓冲流
import java.io.*;
public class Demo45 {
    public static void main(String[] args) throws Exception {
        try (var in = new BufferedInputStream(new FileInputStream("/etc/hosts"))) {
            byte[] buf = in.readAllBytes();
            System.out.println(buf.length);
        }
    }
}
46. 目录遍历 Files.walk
import java.nio.file.*;
import java.io.IOException;
public class Demo46 {
    public static void main(String[] a) throws IOException {
        try (var s = Files.walk(Path.of("."), 1)) {
            s.forEach(System.out::println);
        }
    }
}
47. 正则表达式
import java.util.regex.*;
public class Demo47 {
    public static void main(String[] a) {
        var m = Pattern.compile("(\\w+)@(\\w+\\.\\w+)").matcher("hi [email protected]");
        if (m.find()) System.out.println(m.group(1) + "@" + m.group(2));
    }
}
48. 命令行参数
public class Demo48 {
    public static void main(String[] args) {
        for (String s : args) System.out.println(s);
    }
}
49. 创建线程:Thread/Runnable
public class Demo49 {
    public static void main(String[] a) {
        new Thread(() -> System.out.println("hi from " + Thread.currentThread().getName())).start();
    }
}
50. sleep/yield/join
public class Demo50 {
    public static void main(String[] a) throws InterruptedException {
        Thread t = new Thread(() -> {
            try {
                Thread.sleep(100);
            } catch (InterruptedException ignored) {}
        });
        t.start();
        t.join();
        System.out.println("joined");
    }
}
51. synchronized 同步
class Counter {
    private int c;
    public synchronized void inc() {
        c++;
    }
    public synchronized int get() {
        return c;
    }
}
52. volatile 可见性演示
public class Demo52 {
    static volatile boolean running = true;
    public static void main(String[] a) throws Exception {
        var t = new Thread(() -> {
            while (running) {}
        });
        t.start();
        Thread.sleep(10);
        running = false;
        t.join();
        System.out.println("stop");
    }
}
53. 原子类 AtomicInteger
import java.util.concurrent.atomic.*;
class Cnt {
    AtomicInteger n = new AtomicInteger();
    void inc() {
        n.incrementAndGet();
    }
}
54. ReentrantLock
import java.util.concurrent.locks.*;
class SafeBox {
    private int v;
    private final Lock lock = new ReentrantLock();
    void set(int x) {
        lock.lock();
        try {
            v = x;
        } finally {
            lock.unlock();
        }
    }
    int get() {
        lock.lock();
        try {
            return v;
        } finally {
            lock.unlock();
        }
    }
}
55. ReadWriteLock
import java.util.concurrent.locks.*;
class CacheRW {
    private int v;
    private final ReadWriteLock rw = new ReentrantReadWriteLock();
    int get() {
        rw.readLock().lock();
        try {
            return v;
        } finally {
            rw.readLock().unlock();
        }
    }
    void set(int x) {
        rw.writeLock().lock();
        try {
            v = x;
        } finally {
            rw.writeLock().unlock();
        }
    }
}
56. Condition await/signal
import java.util.concurrent.locks.*;
class Waiter {
    final Lock lock = new ReentrantLock();
    final Condition ready = lock.newCondition();
    boolean ok = false;
    void waitIt() throws InterruptedException {
        lock.lock();
        try {
            while (!ok) ready.await();
        } finally {
            lock.unlock();
        }
    }
    void fire() {
        lock.lock();
        try {
            ok = true;
            ready.signalAll();
        } finally {
            lock.unlock();
        }
    }
}
57. ThreadLocal
public class Demo57 {
    static ThreadLocal<String> ctx = ThreadLocal.withInitial(() -> "guest");
}
58. BlockingQueue 生产者 - 消费者
import java.util.concurrent.*;
public class Demo58 {
    public static void main(String[] a) throws Exception {
        BlockingQueue<Integer> q = new LinkedBlockingQueue<>(2);
        new Thread(() -> {
            try {
                for (int i = 1; i <= 3; i++) {
                    q.put(i);
                }
                q.put(-1);
            } catch (InterruptedException ignored) {}
        }).start();
        new Thread(() -> {
            try {
                for (;;) {
                    int x = q.take();
                    if (x == -1) break;
                    System.out.println("consume " + x);
                }
            } catch (InterruptedException ignored) {}
        }).start();
    }
}
59. CountDownLatch
import java.util.concurrent.*;
public class Demo59 {
    public static void main(String[] a) throws Exception {
        var latch = new CountDownLatch(3);
        for (int i = 0; i < 3; i++) new Thread(() -> {
            latch.countDown();
        }).start();
        latch.await();
        System.out.println("all done");
    }
}
60. CyclicBarrier
import java.util.concurrent.*;
public class Demo60 {
    public static void main(String[] a) {
        var barrier = new CyclicBarrier(3, () -> System.out.println("go!"));
        for (int i = 0; i < 3; i++) new Thread(() -> {
            try {
                barrier.await();
            } catch (Exception ignored) {}
        }).start();
    }
}
61. Semaphore
import java.util.concurrent.*;
public class Demo61 {
    public static void main(String[] a) {
        var sem = new Semaphore(2);
        for (int i = 0; i < 5; i++) new Thread(() -> {
            try {
                sem.acquire();
                System.out.println("in");
                Thread.sleep(50);
            } catch (Exception ignored) {}
            finally {
                sem.release();
            }
        }).start();
    }
}
62. Phaser
import java.util.concurrent.*;
public class Demo62 {
    public static void main(String[] a) {
        Phaser p = new Phaser(3);
        for (int i = 0; i < 3; i++) new Thread(() -> {
            p.arriveAndAwaitAdvance();
            System.out.println("phase1");
            p.arriveAndDeregister();
        }).start();
    }
}
63. ExecutorService 线程池
import java.util.concurrent.*;
public class Demo63 {
    public static void main(String[] a) throws Exception {
        ExecutorService pool = Executors.newFixedThreadPool(4);
        Future<Integer> f = pool.submit(() -> 42);
        System.out.println(f.get());
        pool.shutdown();
    }
}
64. ScheduledExecutorService 定时任务
import java.util.concurrent.*;
public class Demo64 {
    public static void main(String[] a) {
        var sch = Executors.newScheduledThreadPool(1);
        sch.scheduleAtFixedRate(() -> System.out.println("tick"), 0, 1, TimeUnit.SECONDS);
    }
}
65. CompletableFuture
import java.util.concurrent.*;
public class Demo65 {
    public static void main(String[] a) throws Exception {
        var f = CompletableFuture.supplyAsync(() -> 21).thenApply(x -> x * 2);
        System.out.println(f.get());
    }
}
66. ForkJoinPool
import java.util.concurrent.*;
import java.util.*;
public class Demo66 {
    static class Sum extends RecursiveTask<Long> {
        final int[] arr;
        final int lo, hi;
        static final int TH = 1_000;
        Sum(int[] arr, int lo, int hi) {
            this.arr = arr;
            this.lo = lo;
            this.hi = hi;
        }
        protected Long compute() {
            if (hi - lo <= TH) {
                long s = 0;
                for (int i = lo; i < hi; i++) s += arr[i];
                return s;
            }
            int mid = (lo + hi) / 2;
            var left = new Sum(arr, lo, mid);
            var right = new Sum(arr, mid, hi);
            left.fork();
            long r = right.compute();
            return left.join() + r;
        }
    }
    public static void main(String[] a) {
        int[] data = new Random().ints(1_000_000, 1, 10).toArray();
        long s = ForkJoinPool.commonPool().invoke(new Sum(data, 0, data.length));
        System.out.println(s);
    }
}

进一步学习与架构思维

  • 从'写得通'到'写得稳':关注单元测试、异常边界、不可变对象(record / Collections.unmodifiable*)。
  • 从单体到分布式:理解并发原语到线程池隔离,进而到服务化(超时、重试、熔断、限流)的设计理念。
  • 数据与 AI 接口:HTTP 客户端(Java 11+ HttpClient)、JSON 编解码(Jackson/Gson)、向量数据库/消息队列客户端的异步调用,落地到 CompletableFuture 组合编排。
  • 性能与可观测:JFR(Java Flight Recorder)、JIT/GC 基础、指标与日志链路。

基础语法、面向对象编程、集合与流、文件 I/O、并发与线程、现代并发与编排、Web/AI/数据组件、全栈/架构、Java 基本数据类型、控制结构、类与对象、继承与多态、抽象类与接口、集合框架、Stream API、文件读取与写入、路径与文件操作、线程基础、同步与锁、线程池、异步编程、Web 开发基础、AI 与机器学习、数据分析与处理。

目录

  1. Java 核心语法与并发编程实战示例
  2. 环境建议
  3. 1. Hello World
  4. 2. 变量与类型
  5. 3. 类型转换
  6. 4. 常量 final
  7. 5. 运算符
  8. 6. 字符串操作
  9. 7. 控制台输入
  10. 8. 格式化输出
  11. 9. if-else
  12. 10. switch 表达式
  13. 11. for 循环
  14. 12. while/do-while
  15. 13. break/continue/标签
  16. 14. 增强 for
  17. 15. 一维数组
  18. 16. 二维数组
  19. 17. Arrays 工具类
  20. 18. 方法与重载
  21. 19. 可变参数
  22. 20. 类与对象
  23. 21. 封装
  24. 22. 构造器与 this
  25. 23. static 成员与静态块
  26. 24. 继承与 super
  27. 25. 多态与重写
  28. 26. 抽象类
  29. 27. 接口(default/static)
  30. 28. 内部类与匿名类
  31. 29. 泛型类
  32. 30. 泛型方法与通配符(PECS)
  33. 31. 枚举
  34. 32. ArrayList/LinkedList
  35. 33. HashMap/LinkedHashMap/TreeMap
  36. 34. HashSet/LinkedHashSet/TreeSet
  37. 35. Queue/Deque
  38. 36. Comparable/Comparator
  39. 37. Stream 基本操作
  40. 38. Optional
  41. 39. Collectors 分组/分区
  42. 40. try-catch-finally & 多重捕获
  43. 41. 自定义异常
  44. 42. try-with-resources
  45. 43. NIO.2 文件读写
  46. 44. 对象序列化
  47. 45. 缓冲流
  48. 46. 目录遍历 Files.walk
  49. 47. 正则表达式
  50. 48. 命令行参数
  51. 49. 创建线程:Thread/Runnable
  52. 50. sleep/yield/join
  53. 51. synchronized 同步
  54. 52. volatile 可见性演示
  55. 53. 原子类 AtomicInteger
  56. 54. ReentrantLock
  57. 55. ReadWriteLock
  58. 56. Condition await/signal
  59. 57. ThreadLocal
  60. 58. BlockingQueue 生产者 - 消费者
  61. 59. CountDownLatch
  62. 60. CyclicBarrier
  63. 61. Semaphore
  64. 62. Phaser
  65. 63. ExecutorService 线程池
  66. 64. ScheduledExecutorService 定时任务
  67. 65. CompletableFuture
  68. 66. ForkJoinPool
  69. 进一步学习与架构思维
  • 💰 8折买阿里云服务器限时8折了解详情
  • Magick API 一键接入全球大模型注册送1000万token查看
  • 🤖 一键搭建Deepseek满血版了解详情
  • 一键打造专属AI 智能体了解详情
极客日志微信公众号二维码

微信扫一扫,关注极客日志

微信公众号「极客日志V2」,在微信中扫描左侧二维码关注。展示文案:极客日志V2 zeeklog

更多推荐文章

查看全部
  • SpringBoot 国际化 i18n 实战:配置文件与动态切换方案
  • C++ 关联式容器:map 与 set 详解
  • 大模型混战时代互联网企业的转型与应对策略
  • 时序数据库选型指南:Apache IoTDB 核心优势与评估维度
  • 本周 GitHub 爆火!10 个开源神器,彻底改变你的 AI 开发效率
  • Python 非官方 Google 搜索 API 使用指南
  • AI 安全实战:基于 Stable Diffusion 的视觉提示词注入攻击研究
  • Superpowers:用工程流程纪律驯化 Claude Code 实现可靠交付
  • 基于混元 AIGC 与腾讯云智能体的文思通智能写作助手构建
  • Python 和 PyCharm 安装配置教程
  • AI 辅助撰写学术论文综述的方法与实践指南
  • 二分查找实战:山脉数组的峰顶索引与寻找峰值
  • 中国人工智能大模型技术白皮书核心内容解读
  • ESP32 无人机远程识别实战:ArduRemoteID 配置与部署
  • AI 浪潮下计算机专业学习路径:从代码写手到系统掌舵者
  • Google 秘密计划曝光:AI 或取代人类程序员敲代码
  • 医疗 AI 败血症预测算法全流程实战与 Python 实现
  • Virt A Mate (VAM) v1.22 中文汉化整合
  • Whisper.cpp 本地离线语音识别实战指南
  • 深圳大厂程序员被裁后:中年危机下的 Android 框架技术进阶

相关免费在线工具

  • Keycode 信息

    查找任何按下的键的javascript键代码、代码、位置和修饰符。 在线工具,Keycode 信息在线工具,online

  • Escape 与 Native 编解码

    JavaScript 字符串转义/反转义;Java 风格 \uXXXX(Native2Ascii)编码与解码。 在线工具,Escape 与 Native 编解码在线工具,online

  • JavaScript / HTML 格式化

    使用 Prettier 在浏览器内格式化 JavaScript 或 HTML 片段。 在线工具,JavaScript / HTML 格式化在线工具,online

  • JavaScript 压缩与混淆

    Terser 压缩、变量名混淆,或 javascript-obfuscator 高强度混淆(体积会增大)。 在线工具,JavaScript 压缩与混淆在线工具,online

  • 加密/解密文本

    使用加密算法(如AES、TripleDES、Rabbit或RC4)加密和解密文本明文。 在线工具,加密/解密文本在线工具,online

  • Gemini 图片去水印

    基于开源反向 Alpha 混合算法去除 Gemini/Nano Banana 图片水印,支持批量处理与下载。 在线工具,Gemini 图片去水印在线工具,online