自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Java 8中的CompletableFuture太好用了!20個(gè)示例全分享…

開(kāi)發(fā) 后端
這篇文章介紹 Java 8 的 CompletionStage API 和它的標(biāo)準(zhǔn)庫(kù)的實(shí)現(xiàn) CompletableFuture。API通過(guò)例子的方式演示了它的行為,每個(gè)例子演示一到兩個(gè)行為。

[[388339]]

在Java中異步編程,不一定非要使用rxJava, Java本身的庫(kù)中的CompletableFuture可以很好的應(yīng)對(duì)大部分的場(chǎng)景。

這篇文章介紹 Java 8 的 CompletionStage API 和它的標(biāo)準(zhǔn)庫(kù)的實(shí)現(xiàn) CompletableFuture。API通過(guò)例子的方式演示了它的行為,每個(gè)例子演示一到兩個(gè)行為。

既然CompletableFuture類實(shí)現(xiàn)了CompletionStage接口,首先我們需要理解這個(gè)接口的契約。它代表了一個(gè)特定的計(jì)算的階段,可以同步或者異步的被完成。你可以把它看成一個(gè)計(jì)算流水線上的一個(gè)單元,最終會(huì)產(chǎn)生一個(gè)最終結(jié)果,這意味著幾個(gè)CompletionStage可以串聯(lián)起來(lái),一個(gè)完成的階段可以觸發(fā)下一階段的執(zhí)行,接著觸發(fā)下一次,接著……

除了實(shí)現(xiàn)CompletionStage接口, CompletableFuture也實(shí)現(xiàn)了future接口, 代表一個(gè)未完成的異步事件。CompletableFuture提供了方法,能夠顯式地完成這個(gè)future,所以它叫CompletableFuture。

1、創(chuàng)建一個(gè)完成的CompletableFuture

最簡(jiǎn)單的例子就是使用一個(gè)預(yù)定義的結(jié)果創(chuàng)建一個(gè)完成的CompletableFuture,通常我們會(huì)在計(jì)算的開(kāi)始階段使用它。 

  1. static void completedFutureExample() {  
  2.     CompletableFuture cf = CompletableFuture.completedFuture("message");  
  3.     assertTrue(cf.isDone());  
  4.     assertEquals("message", cf.getNow(null));  

getNow(null)方法在future完成的情況下會(huì)返回結(jié)果,就比如上面這個(gè)例子,否則返回null (傳入的參數(shù))。

2、運(yùn)行一個(gè)簡(jiǎn)單的異步階段

這個(gè)例子創(chuàng)建一個(gè)一個(gè)異步執(zhí)行的階段: 

  1. static void runAsyncExample() {  
  2.     CompletableFuture cf = CompletableFuture.runAsync(() -> {  
  3.         assertTrue(Thread.currentThread().isDaemon());  
  4.         randomSleep();  
  5.     });  
  6.     assertFalse(cf.isDone());  
  7.     sleepEnough();  
  8.     assertTrue(cf.isDone());  

通過(guò)這個(gè)例子可以學(xué)到兩件事情:

CompletableFuture的方法如果以Async結(jié)尾,它會(huì)異步的執(zhí)行(沒(méi)有指定executor的情況下), 異步執(zhí)行通過(guò)ForkJoinPool實(shí)現(xiàn), 它使用守護(hù)線程去執(zhí)行任務(wù)。注意這是CompletableFuture的特性, 其它CompletionStage可以override這個(gè)默認(rèn)的行為。

參考閱讀:任務(wù)并行執(zhí)行神器:Fork&Join框架

3、在前一個(gè)階段上應(yīng)用函數(shù)

下面這個(gè)例子使用前面 #1 的完成的CompletableFuture, #1返回結(jié)果為字符串message,然后應(yīng)用一個(gè)函數(shù)把它變成大寫(xiě)字母。 

  1. static void thenApplyExample() {  
  2.     CompletableFuture cf = CompletableFuture.completedFuture("message").thenApply(s -> {  
  3.         assertFalse(Thread.currentThread().isDaemon());  
  4.         return s.toUpperCase();  
  5.     });  
  6.     assertEquals("MESSAGE", cf.getNow(null));  

注意thenApply方法名稱代表的行為。

then意味著這個(gè)階段的動(dòng)作發(fā)生當(dāng)前的階段正常完成之后。本例中,當(dāng)前節(jié)點(diǎn)完成,返回字符串message。

Apply意味著返回的階段將會(huì)對(duì)結(jié)果前一階段的結(jié)果應(yīng)用一個(gè)函數(shù)。

函數(shù)的執(zhí)行會(huì)被阻塞,這意味著getNow()只有打斜操作被完成后才返回。

另外,關(guān)注公眾號(hào)Java技術(shù)棧,在后臺(tái)回復(fù):面試,可以獲取我整理的 Java 并發(fā)多線程系列面試題和答案,非常齊全。

4、在前一個(gè)階段上異步應(yīng)用函數(shù)

通過(guò)調(diào)用異步方法(方法后邊加Async后綴),串聯(lián)起來(lái)的CompletableFuture可以異步地執(zhí)行(使用ForkJoinPool.commonPool())。 

  1. static void thenApplyAsyncExample() {  
  2.     CompletableFuture cf = CompletableFuture.completedFuture("message").thenApplyAsync(s -> {  
  3.         assertTrue(Thread.currentThread().isDaemon());  
  4.         randomSleep();  
  5.         return s.toUpperCase();  
  6.     });  
  7.     assertNull(cf.getNow(null));  
  8.     assertEquals("MESSAGE", cf.join());  

5、使用定制的Executor在前一個(gè)階段上異步應(yīng)用函數(shù)

異步方法一個(gè)非常有用的特性就是能夠提供一個(gè)Executor來(lái)異步地執(zhí)行CompletableFuture?!毒€程池全面解析》推薦看下。

這個(gè)例子演示了如何使用一個(gè)固定大小的線程池來(lái)應(yīng)用大寫(xiě)函數(shù)。 

  1. static ExecutorService executor = Executors.newFixedThreadPool(3, new ThreadFactory() {  
  2.     int count = 1;   
  3.     @Override  
  4.     public Thread newThread(Runnable runnable) {  
  5.         return new Thread(runnable, "custom-executor-" + count++);  
  6.     }  
  7. });  
  8. static void thenApplyAsyncWithExecutorExample() {  
  9.     CompletableFuture cf = CompletableFuture.completedFuture("message").thenApplyAsync(s -> {  
  10.         assertTrue(Thread.currentThread().getName().startsWith("custom-executor-"));  
  11.         assertFalse(Thread.currentThread().isDaemon());  
  12.         randomSleep();  
  13.         return s.toUpperCase();  
  14.     }, executor);  
  15.     assertNull(cf.getNow(null));  
  16.     assertEquals("MESSAGE", cf.join());  

6、消費(fèi)前一階段的結(jié)果

如果下一階段接收了當(dāng)前階段的結(jié)果,但是在計(jì)算的時(shí)候不需要返回值(它的返回類型是void), 那么它可以不應(yīng)用一個(gè)函數(shù),而是一個(gè)消費(fèi)者, 調(diào)用方法也變成了thenAccept: 

  1. static void thenAcceptExample() {  
  2.     StringBuilder result = new StringBuilder();  
  3.     CompletableFuture.completedFuture("thenAccept message")  
  4.             .thenAccept(s -> result.append(s));  
  5.     assertTrue("Result was empty", result.length() > 0);  

本例中消費(fèi)者同步地執(zhí)行,所以我們不需要在CompletableFuture調(diào)用join方法。 

7、異步地消費(fèi)遷移階段的結(jié)果

同樣,可以使用thenAcceptAsync方法, 串聯(lián)的CompletableFuture可以異步地執(zhí)行。 

  1. static void thenAcceptAsyncExample() {  
  2.     StringBuilder result = new StringBuilder();  
  3.     CompletableFuture cf = CompletableFuture.completedFuture("thenAcceptAsync message")  
  4.             .thenAcceptAsync(s -> result.append(s));  
  5.     cf.join();  
  6.     assertTrue("Result was empty", result.length() > 0);  

8、完成計(jì)算異常

現(xiàn)在我們來(lái)看一下異步操作如何顯式地返回異常,用來(lái)指示計(jì)算失敗。我們簡(jiǎn)化這個(gè)例子,操作處理一個(gè)字符串,把它轉(zhuǎn)換成答謝,我們模擬延遲一秒。

我們使用thenApplyAsync(Function, Executor)方法,第一個(gè)參數(shù)傳入大寫(xiě)函數(shù), executor是一個(gè)delayed executor,在執(zhí)行前會(huì)延遲一秒。 

  1. static void completeExceptionallyExample() {  
  2.     CompletableFuture cf = CompletableFuture.completedFuture("message").thenApplyAsync(String::toUpperCase,  
  3.             CompletableFuture.delayedExecutor(1, TimeUnit.SECONDS));  
  4.     CompletableFuture exceptionHandler = cf.handle((s, th) -> { return (th != null) ? "message upon cancel" : ""; });  
  5.     cf.completeExceptionally(new RuntimeException("completed exceptionally"));  
  6. assertTrue("Was not completed exceptionally", cf.isCompletedExceptionally());  
  7.     try {  
  8.         cf.join();  
  9.         fail("Should have thrown an exception");  
  10.     } catch(CompletionException ex) { // just for testing  
  11.         assertEquals("completed exceptionally", ex.getCause().getMessage());  
  12.     }  
  13.     assertEquals("message upon cancel", exceptionHandler.join());  

讓我們看一下細(xì)節(jié)。

首先我們創(chuàng)建了一個(gè)CompletableFuture, 完成后返回一個(gè)字符串message,接著我們調(diào)用thenApplyAsync方法,它返回一個(gè)CompletableFuture。這個(gè)方法在第一個(gè)函數(shù)完成后,異步地應(yīng)用轉(zhuǎn)大寫(xiě)字母函數(shù)。

這個(gè)例子還演示了如何通過(guò)delayedExecutor(timeout, timeUnit)延遲執(zhí)行一個(gè)異步任務(wù)。

我們創(chuàng)建了一個(gè)分離的handler階段:exceptionHandler, 它處理異常異常,在異常情況下返回message upon cancel。

下一步我們顯式地用異常完成第二個(gè)階段。在階段上調(diào)用join方法,它會(huì)執(zhí)行大寫(xiě)轉(zhuǎn)換,然后拋出CompletionException(正常的join會(huì)等待1秒,然后得到大寫(xiě)的字符串。不過(guò)我們的例子還沒(méi)等它執(zhí)行就完成了異常), 然后它觸發(fā)了handler階段。

9、取消計(jì)算

和完成異常類似,我們可以調(diào)用cancel(boolean mayInterruptIfRunning)取消計(jì)算。對(duì)于CompletableFuture類,布爾參數(shù)并沒(méi)有被使用,這是因?yàn)樗](méi)有使用中斷去取消操作,相反,cancel等價(jià)于completeExceptionally(new CancellationException())。 

  1. static void cancelExample() {  
  2.     CompletableFuture cf = CompletableFuture.completedFuture("message").thenApplyAsync(String::toUpperCase,  
  3.             CompletableFuture.delayedExecutor(1, TimeUnit.SECONDS));  
  4.     CompletableFuture cfcf2 = cf.exceptionally(throwable -> "canceled message");  
  5.     assertTrue("Was not canceled", cf.cancel(true));  
  6.     assertTrue("Was not completed exceptionally", cf.isCompletedExceptionally());  
  7.     assertEquals("canceled message", cf2.join());  

10、在兩個(gè)完成的階段其中之一上應(yīng)用函數(shù)

下面的例子創(chuàng)建了CompletableFuture, applyToEither處理兩個(gè)階段, 在其中之一上應(yīng)用函數(shù)(包保證哪一個(gè)被執(zhí)行)。本例中的兩個(gè)階段一個(gè)是應(yīng)用大寫(xiě)轉(zhuǎn)換在原始的字符串上, 另一個(gè)階段是應(yīng)用小些轉(zhuǎn)換。 

  1. static void applyToEitherExample() {  
  2.     String original = "Message" 
  3.     CompletableFuture cf1 = CompletableFuture.completedFuture(original)  
  4.             .thenApplyAsync(s -> delayedUpperCase(s));  
  5.     CompletableFuture cf2 = cf1.applyToEither(  
  6.             CompletableFuture.completedFuture(original).thenApplyAsync(s -> delayedLowerCase(s)),  
  7.             s -> s + " from applyToEither");  
  8.     assertTrue(cf2.join().endsWith(" from applyToEither"));  

11、在兩個(gè)完成的階段其中之一上調(diào)用消費(fèi)函數(shù)

和前一個(gè)例子很類似了,只不過(guò)我們調(diào)用的是消費(fèi)者函數(shù) (Function變成Consumer): 

  1. static void acceptEitherExample() {  
  2.     String original = "Message" 
  3.     StringBuilder result = new StringBuilder();  
  4.     CompletableFuture cf = CompletableFuture.completedFuture(original)  
  5.             .thenApplyAsync(s -> delayedUpperCase(s))  
  6.             .acceptEither(CompletableFuture.completedFuture(original).thenApplyAsync(s -> delayedLowerCase(s)),  
  7.                     s -> result.append(s).append("acceptEither"));  
  8.     cf.join();  
  9.     assertTrue("Result was empty", result.toString().endsWith("acceptEither"));  

12、在兩個(gè)階段都執(zhí)行完后運(yùn)行一個(gè) Runnable

這個(gè)例子演示了依賴的CompletableFuture如果等待兩個(gè)階段完成后執(zhí)行了一個(gè)Runnable。 

注意下面所有的階段都是同步執(zhí)行的,第一個(gè)階段執(zhí)行大寫(xiě)轉(zhuǎn)換,第二個(gè)階段執(zhí)行小寫(xiě)轉(zhuǎn)換。 

  1. static void runAfterBothExample() {  
  2.     String original = "Message" 
  3.     StringBuilder result = new StringBuilder();  
  4.     CompletableFuture.completedFuture(original).thenApply(String::toUpperCase).runAfterBoth(  
  5.             CompletableFuture.completedFuture(original).thenApply(String::toLowerCase),  
  6.             () -> result.append("done"));  
  7.     assertTrue("Result was empty", result.length() > 0);  

13、 使用BiConsumer處理兩個(gè)階段的結(jié)果

上面的例子還可以通過(guò)BiConsumer來(lái)實(shí)現(xiàn): 

  1. static void thenAcceptBothExample() {  
  2.     String original = "Message" 
  3.     StringBuilder result = new StringBuilder();  
  4.     CompletableFuture.completedFuture(original).thenApply(String::toUpperCase).thenAcceptBoth(  
  5.             CompletableFuture.completedFuture(original).thenApply(String::toLowerCase),  
  6.             (s1, s2) -> result.append(s1 + s2));  
  7.     assertEquals("MESSAGEmessage", result.toString());  

14、使用BiFunction處理兩個(gè)階段的結(jié)果

如果CompletableFuture依賴兩個(gè)前面階段的結(jié)果, 它復(fù)合兩個(gè)階段的結(jié)果再返回一個(gè)結(jié)果,我們就可以使用thenCombine()函數(shù)。整個(gè)流水線是同步的,所以getNow()會(huì)得到最終的結(jié)果,它把大寫(xiě)和小寫(xiě)字符串連接起來(lái)。 

  1. static void thenCombineExample() {  
  2.     String original = "Message" 
  3.     CompletableFuture cf = CompletableFuture.completedFuture(original).thenApply(s -> delayedUpperCase(s))  
  4.             .thenCombine(CompletableFuture.completedFuture(original).thenApply(s -> delayedLowerCase(s)),  
  5.                     (s1, s2) -> s1 + s2);  
  6.     assertEquals("MESSAGEmessage", cf.getNow(null));  

15、異步使用BiFunction處理兩個(gè)階段的結(jié)果

類似上面的例子,但是有一點(diǎn)不同:依賴的前兩個(gè)階段異步地執(zhí)行,所以thenCombine()也異步地執(zhí)行,即時(shí)它沒(méi)有Async后綴。

Javadoc中有注釋:

Actions supplied for dependent completions of non-async methods may be performed by the thread that completes the current CompletableFuture, or by any other caller of a completion method

所以我們需要join方法等待結(jié)果的完成。 

  1. static void thenCombineAsyncExample() {  
  2.     String original = "Message" 
  3.     CompletableFuture cf = CompletableFuture.completedFuture(original)  
  4.             .thenApplyAsync(s -> delayedUpperCase(s))  
  5.             .thenCombine(CompletableFuture.completedFuture(original).thenApplyAsync(s -> delayedLowerCase(s)),  
  6.                     (s1, s2) -> s1 + s2);  
  7.     assertEquals("MESSAGEmessage", cf.join());  

16、組合 CompletableFuture

我們可以使用thenCompose()完成上面兩個(gè)例子。這個(gè)方法等待第一個(gè)階段的完成(大寫(xiě)轉(zhuǎn)換), 它的結(jié)果傳給一個(gè)指定的返回CompletableFuture函數(shù),它的結(jié)果就是返回的CompletableFuture的結(jié)果。

有點(diǎn)拗口,但是我們看例子來(lái)理解。函數(shù)需要一個(gè)大寫(xiě)字符串做參數(shù),然后返回一個(gè)CompletableFuture, 這個(gè)CompletableFuture會(huì)轉(zhuǎn)換字符串變成小寫(xiě)然后連接在大寫(xiě)字符串的后面。 

  1. static void thenComposeExample() {  
  2.     String original = "Message" 
  3.     CompletableFuture cf = CompletableFuture.completedFuture(original).thenApply(s -> delayedUpperCase(s))  
  4.             .thenCompose(upper -> CompletableFuture.completedFuture(original).thenApply(s -> delayedLowerCase(s))  
  5.                     .thenApply(s -> upper + s));  
  6.     assertEquals("MESSAGEmessage", cf.join());  

17、當(dāng)幾個(gè)階段中的一個(gè)完成,創(chuàng)建一個(gè)完成的階段

下面的例子演示了當(dāng)任意一個(gè)CompletableFuture完成后, 創(chuàng)建一個(gè)完成的CompletableFuture.

待處理的階段首先創(chuàng)建, 每個(gè)階段都是轉(zhuǎn)換一個(gè)字符串為大寫(xiě)。因?yàn)楸纠羞@些階段都是同步地執(zhí)行(thenApply), 從anyOf中創(chuàng)建的CompletableFuture會(huì)立即完成,這樣所有的階段都已完成,我們使用whenComplete(BiConsumer<? super Object, ? super Throwable> action)處理完成的結(jié)果。 

  1. static void anyOfExample() {  
  2.     StringBuilder result = new StringBuilder();  
  3.     List messages = Arrays.asList("a", "b", "c");  
  4.     List<CompletableFuture> futures = messages.stream()  
  5.             .map(msg -> CompletableFuture.completedFuture(msg).thenApply(s -> delayedUpperCase(s)))  
  6.             .collect(Collectors.toList());  
  7.     CompletableFuture.anyOf(futures.toArray(new CompletableFuture[futures.size()])).whenComplete((res, th) -> {  
  8.         if(th == null) {  
  9.             assertTrue(isUpperCase((String) res));  
  10.             result.append(res);  
  11.         }  
  12.     });  
  13.     assertTrue("Result was empty", result.length() > 0);  

18、當(dāng)所有的階段都完成后創(chuàng)建一個(gè)階段

上一個(gè)例子是當(dāng)任意一個(gè)階段完成后接著處理,接下來(lái)的兩個(gè)例子演示當(dāng)所有的階段完成后才繼續(xù)處理, 同步地方式和異步地方式兩種。 

  1. static void allOfExample() {  
  2.     StringBuilder result = new StringBuilder();  
  3.     List messages = Arrays.asList("a", "b", "c");  
  4.     List<CompletableFuture> futures = messages.stream()  
  5.             .map(msg -> CompletableFuture.completedFuture(msg).thenApply(s -> delayedUpperCase(s)))  
  6.             .collect(Collectors.toList());  
  7.     CompletableFuture.allOf(futures.toArray(new CompletableFuture[futures.size()])).whenComplete((v, th) -> {  
  8.         futures.forEach(cf -> assertTrue(isUpperCase(cf.getNow(null))));  
  9.         result.append("done");  
  10.     });  
  11.     assertTrue("Result was empty", result.length() > 0);  

19、當(dāng)所有的階段都完成后異步地創(chuàng)建一個(gè)階段

使用thenApplyAsync()替換那些單個(gè)的CompletableFutures的方法,allOf()會(huì)在通用池中的線程中異步地執(zhí)行。所以我們需要調(diào)用join方法等待它完成。 

  1. static void allOfAsyncExample() {  
  2.     StringBuilder result = new StringBuilder();  
  3.     List messages = Arrays.asList("a", "b", "c");  
  4.     List<CompletableFuture> futures = messages.stream()  
  5.             .map(msg -> CompletableFuture.completedFuture(msg).thenApplyAsync(s -> delayedUpperCase(s)))  
  6.             .collect(Collectors.toList());  
  7.     CompletableFuture allOf = CompletableFuture.allOf(futures.toArray(new CompletableFuture[futures.size()]))  
  8.             .whenComplete((v, th) -> { 
  9.                 futures.forEach(cf -> assertTrue(isUpperCase(cf.getNow(null))));  
  10.                 result.append("done");  
  11.             });  
  12.     allOf.join();  
  13.     assertTrue("Result was empty", result.length() > 0);  

20、真實(shí)的例子

現(xiàn)在你已經(jīng)了解了CompletionStage 和 CompletableFuture 的一些函數(shù)的功能,下面的例子是一個(gè)實(shí)踐場(chǎng)景:

  1.  首先異步調(diào)用cars方法獲得Car的列表,它返回CompletionStage場(chǎng)景。cars消費(fèi)一個(gè)遠(yuǎn)程的REST API。
  2.  然后我們復(fù)合一個(gè)CompletionStage填寫(xiě)每個(gè)汽車(chē)的評(píng)分,通過(guò)rating(manufacturerId)返回一個(gè)CompletionStage, 它會(huì)異步地獲取汽車(chē)的評(píng)分(可能又是一個(gè)REST API調(diào)用)
  3.  當(dāng)所有的汽車(chē)填好評(píng)分后,我們結(jié)束這個(gè)列表,所以我們調(diào)用allOf得到最終的階段, 它在前面階段所有階段完成后才完成。
  4.  在最終的階段調(diào)用whenComplete(),我們打印出每個(gè)汽車(chē)和它的評(píng)分。 
  1. cars().thenCompose(cars -> {  
  2.     List<CompletionStage> updatedCars = cars.stream()  
  3.             .map(car -> rating(car.manufacturerId).thenApply(r -> {  
  4.                 car.setRating(r);  
  5.                 return car;  
  6.             })).collect(Collectors.toList());  
  7.     CompletableFuture done = CompletableFuture  
  8.             .allOf(updatedCars.toArray(new CompletableFuture[updatedCars.size()]));  
  9.     return done.thenApply(v -> updatedCars.stream().map(CompletionStage::toCompletableFuture)  
  10.             .map(CompletableFuture::join).collect(Collectors.toList()));  
  11. }).whenComplete((cars, th) -> {  
  12.     if (th == null) { 
  13.         cars.forEach(System.out::println);  
  14.     } else {  
  15.         throw new RuntimeException(th);  
  16.     }  
  17. }).toCompletableFuture().join(); 

因?yàn)槊總€(gè)汽車(chē)的實(shí)例都是獨(dú)立的,得到每個(gè)汽車(chē)的評(píng)分都可以異步地執(zhí)行,這會(huì)提高系統(tǒng)的性能(延遲),而且,等待所有的汽車(chē)評(píng)分被處理使用的是allOf方法,而不是手工的線程等待(Thread#join() 或 a CountDownLatch)。

 

責(zé)任編輯:龐桂玉 來(lái)源: Java技術(shù)棧
相關(guān)推薦

2021-08-11 09:33:15

Vue 技巧 開(kāi)發(fā)工具

2024-12-13 16:01:35

2021-02-21 14:35:29

Java 8異步編程

2022-07-14 08:36:28

NacosApollo長(zhǎng)輪詢

2024-05-11 09:38:05

React編譯器React 19

2022-05-31 09:42:49

工具編輯器

2021-04-22 09:56:32

MYSQL開(kāi)發(fā)數(shù)據(jù)庫(kù)

2022-08-01 07:02:06

SpringEasyExcel場(chǎng)景

2021-03-19 09:48:10

Jupyter Not插件Python

2020-12-29 10:45:55

開(kāi)發(fā)設(shè)計(jì)代碼

2020-06-23 15:58:42

心電圖

2022-09-06 10:52:04

正則庫(kù)HumrePython

2016-11-29 12:46:24

JavaJava8時(shí)間日期庫(kù)

2024-04-18 08:20:27

Java 8編程工具

2022-05-11 14:43:37

WindowsPython服務(wù)器

2021-09-10 10:15:24

Python人臉識(shí)別AI

2022-07-25 06:42:24

分布式鎖Redis

2020-11-10 06:11:59

工具軟件代碼

2021-03-02 20:42:20

實(shí)戰(zhàn)策略

2022-06-28 07:14:23

WizTree磁盤(pán)文件清理
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)