百度+搜狗快排程序核心代码分享

# 快排程序二次开发

 

[TOC]

 

## 基于IDEA二次开发

 

> 目的是希望拉下代码可以跑起来;

 

 

### 前置条件

 

1. 研发是基于`IEDA2019`版本;(如果用`eclipse`,请`github`拉去代码)

2. 研发基于`JDK1.8`

3. 并未使用mysql等数据库等,所以只需要`jdk+idea`即可(测试机一定要有`chrome`浏览器)

 

 

核心代码:

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
package engines;
 
import com.teamdev.jxbrowser.chromium.*;
import com.teamdev.jxbrowser.chromium.BrowserKeyEvent.KeyModifiers;
import com.teamdev.jxbrowser.chromium.BrowserKeyEvent.KeyModifiersBuilder;
import com.teamdev.jxbrowser.chromium.BrowserMouseEvent.BrowserMouseEventBuilder;
import com.teamdev.jxbrowser.chromium.BrowserMouseEvent.MouseButtonType;
import com.teamdev.jxbrowser.chromium.dom.By;
import com.teamdev.jxbrowser.chromium.dom.DOMElement;
import com.teamdev.jxbrowser.chromium.events.FinishLoadingEvent;
import com.teamdev.jxbrowser.chromium.events.LoadAdapter;
import com.teamdev.jxbrowser.chromium.swing.BrowserView;
import config.UA;
import tool.*;
 
import javax.swing.*;
import java.awt.*;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static com.teamdev.jxbrowser.chromium.BrowserMouseEvent.MouseButtonType.PRIMARY;
import static com.teamdev.jxbrowser.chromium.BrowserMouseEvent.MouseEventType.*;
import static com.teamdev.jxbrowser.chromium.BrowserMouseEvent.MouseScrollType.WHEEL_BLOCK_SCROLL;
 
 
public class Baidu {
   static  boolean show=true;
   static EnglishResolution.WidthHeiht widthHeiht = EnglishResolution.getEnglishResolution(EnglishResolution.PC);
    static long startMonitor=System.currentTimeMillis();
    public static void main(String[] args) throws Exception {
        new Thread(new Monitor(1000*60*5)).start();
        if("1".equals(PropertyConfig.getPropertyV("ipChange").trim()))
        {
            MNET.ipChange();
            System.out.println("换IP....");
        }else {
            System.out.println("忘记没有换IP吗?");
        }
 
        String doman=null,  searchwords=null,title=null;
        try {
            System.out.println("***************测试大量点击,没有展示...***********************");
            List<String> stringList=new ArrayList();
            for(int i=0;i<500;i++){
                String str= PropertyConfig.getPropertyV("test"+i);
                if(str!=null&&str.trim().length()>2){
                    stringList.add(str);
                    System.out.println(str);
                }
            }
            if(stringList.size()>0){
                String item= L.shenChoose(stringList);
                doman= RegexParse.baseParse(item,"doman=([\\S]*?);",1);
                searchwords= RegexParse.baseParse(item,"searchWords=([\\S]*?);",1);
                /**
                 * 这个地方会空指针,并不是程序的问题,而是我并没有开放百度的参数;
                 * */
                //String url=null;
                String url="https://www.baidu.com/s?ie=utf-8&wd="+searchwords+"&et="+doman;
               // String url="https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=" + L.randomNumber(0, 1) + "&tn=baiduhome_pg&wd=" + searchwords + "&ct=" + L.rm1() + "&et=" + doman + "&rqlang=cn&rsv_enter=1&rsv_dl=tb&rsv_sug3=" + L.randomNumber(0, 3) + "&rsv_sug1=" + L.randomNumber(1, 2) + "&rsv_sug7=100&rsv_sug2=0&inputT=" + L.randomNumber(100, 5000);
                System.out.println("==============================================================================");
                System.err.println("这个地方会空指针,并不是程序的问题,而是我并没有开放百度的参数;如果需要加群了解;或者捐赠了解");
                System.out.println("==============================================================================");
                System.out.println("当前准备运行的是:"+doman+">>"+searchwords+">>"+url);
                if(item!=null&&doman!=null){
                        init();
                        Browser browser = getBroser();
                        BrowserPreferences.setUserAgent(UA.getUa(UA.PC));
                        browser.setSize(widthHeiht.getWidth(), widthHeiht.getHeight());
                        new Thread(new Monitor(168)).start();
                        logic(browser, doman, searchwords, widthHeiht,url,title);
                }
            }
        }catch (Throwable e){
            e.printStackTrace();
            System.exit(0);
        }
    }
 
    static String  getSource(){
        List<String> arrays= Arrays.asList("baidu","50000049_hao_pg","site888_3_pg","56060048_4_pg","97724291_hao_pg","02049043_23_pg","77092190_pg","50000041_hao_pg","02003390_23_hao_pg","02049043_6_pg","request_28_pg","monline_3_dg","95156753_hao_pg","91121590_hao_pg","94962502_hao_pg","66069139_dg","1314","request_2_pg","maxco4","wjlhkp_pg","78040160_15_pg","site5566","58025142_5_oem_dg","78040160_15_pg","27073201_2_hao_pg","58025142_5_oem_dg");
        return  arrays.get(L.randomNumber(0,arrays.size()-1));
    }
 
    static void logic(Browser browser, String doman, String searchwords, EnglishResolution.WidthHeiht widthHeiht, String url, String title) throws Exception {
        browser.setPopupHandler(new PopupHandler() {
            public PopupContainer handlePopup(PopupParams params) {
                return new PopupContainer() {
                    public void insertBrowser(final Browser browser, final Rectangle initialBounds) {
                        SwingUtilities.invokeLater(new Runnable() {
                            @Override
                            public void run() {
                                    BrowserView browserView = new BrowserView(browser);
                                    browserView.setPreferredSize(initialBounds.getSize());
                                    final JFrame frame = new JFrame();
                                    frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
                                    frame.add(browserView, BorderLayout.CENTER);
                                    frame.pack();
                                    frame.setSize(1024, 768);
                                    frame.setLocation(initialBounds.getLocation());
                                    frame.setVisible(true);
                                System.out.println("进入监听"+browser.getURL());
                                while (true){
                                    if(browser.getURL().contains(doman)&&!browser.getURL().contains("baidu")&&!browser.getURL().contains("video"))
                                    {
                                        System.out.println("============================================================");
                                        System.out.println("$$$$$$$$$$$$$$$$$$$$点击成功:"+browser.getURL()+"总耗时:"+((System.currentTimeMillis()-startMonitor)/1000)+"秒");
                                        System.out.println("============================================================");
                                        try {
                                            Thread.sleep(L.randomNumber(1000,5000));
                                        } catch (InterruptedException e) {
                                            e.printStackTrace();
                                        }
                                        browser.dispose();
                                        System.exit(0);
                                        break;
                                    }
                                    try {
                                        Thread.sleep(1000);
                                    } catch (Exception e) {
                                        e.printStackTrace();
                                    }
                                }
                            }
                        });
                    }
                };
            }
        });
 
        browser.addLoadListener(new LoadAdapter() {
            @Override
            public void onFinishLoadingFrame(FinishLoadingEvent event) {
                if(browser.getURL().contains("antispider")){
                    System.out.println("封锁了...");
                    System.exit(0);
                }
                System.out.println("加载完毕.....");
                for(int i=1;i<10;i++){
                    DOMElement domElement=browser.getDocument().findElement(By.xpath("//*[@id=\""+i+"\"]"));
                    if(domElement==null)
                        continue;
                    System.out.println(domElement.getInnerText()+"title"+title+"doman"+doman);
                    if(domElement.getInnerHTML().contains(doman)){
                            System.out.println(browser.getURL());
                            System.out.println("找到匹配开始点击....");
                            excute(browser, domElement, widthHeiht);
                            System.out.println(domElement.getInnerText());
                        break ;
                    }
                }
            }
        });
        browser.loadURL(url);
    }
 
 
 
 
    private static void forwardMousePressEvent(Browser browser,
                                               MouseButtonType buttonType,
                                               int x,
                                               int y,
                                               int globalX,
                                               int globalY) {
        BrowserMouseEventBuilder builder = new BrowserMouseEventBuilder();
        builder.setEventType(MOUSE_PRESSED)
                .setButtonType(buttonType)
                .setX(x)
                .setY(y)
                .setGlobalX(globalX)
                .setGlobalY(globalY)
                .setClickCount(1)
                .setModifiers(new KeyModifiersBuilder().mouseButton().build());
        browser.forwardMouseEvent(builder.build());
    }
 
    private static void forwardMouseReleaseEvent(Browser browser,
                                                 MouseButtonType buttonType,
                                                 int x,
                                                 int y,
                                                 int globalX,
                                                 int globalY) {
        BrowserMouseEventBuilder builder = new BrowserMouseEventBuilder();
        builder.setEventType(MOUSE_RELEASED)
                .setButtonType(buttonType)
                .setX(x)
                .setY(y)
                .setGlobalX(globalX)
                .setGlobalY(globalY)
                .setClickCount(1)
                .setModifiers(KeyModifiers.NO_MODIFIERS);
        browser.forwardMouseEvent(builder.build());
    }
 
    private static void forwardMouseClickEvent(Browser browser,
                                               MouseButtonType buttonType,
                                               int x,
                                               int y,
                                               int globalX,
                                               int globalY) {
        forwardMousePressEvent(browser, buttonType, x, y, globalX, globalY);
        forwardMouseReleaseEvent(browser, buttonType, x, y, globalX, globalY);
    }
 
    private static void forwardMouseScrollEvent(Browser browser,
                                                int unitsToScroll,
                                                int x,
                                                int y) {
        BrowserMouseEventBuilder builder = new BrowserMouseEventBuilder();
        builder.setEventType(MOUSE_WHEEL)
                .setX(x)
                .setY(y)
                .setGlobalX(0)
                .setGlobalY(0)
                .setScrollBarPixelsPerLine(25)
                .setScrollType(WHEEL_BLOCK_SCROLL)
                .setWindowX(widthHeiht.width)
                .setWindowY(widthHeiht.height)
                .setUnitsToScroll(unitsToScroll);
        browser.forwardMouseEvent(builder.build());
    }
 
    public static void excute(Browser browser, DOMElement domElement, EnglishResolution.WidthHeiht widthHeiht) {
            try {
                randomMove(browser,widthHeiht.width,widthHeiht.height);
                scroll(browser, domElement, widthHeiht);
                Rectangle  rectangle = domElement.getBoundingClientRect();
                System.out.println(">>>>>" + rectangle.x + "|" + rectangle.y + "|" + rectangle.width + "|" + rectangle.height + "|" + widthHeiht.width + "|" + widthHeiht.height);
                domElement=domElement.findElement(By.xpath("h3/a"));
                move(browser, rectangle.x, rectangle.y, rectangle.width, rectangle.height);
                //browser.executeJavaScript("window.scrollTo(" + rectangle.x + "," + (rectangle.y-(100+(L.randomNumber(1,68)))) + ");");
                randomMove(browser,widthHeiht.width,widthHeiht.height);
                targetMove(browser,domElement);
               // domElement.click();
                System.out.println("___________________________________________________________");
                domElement.scrollToBottom();
                rectangle = domElement.getBoundingClientRect();
                forwardMouseClickEvent(browser, PRIMARY, rectangle.x, rectangle.y, rectangle.width, rectangle.height);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
 
 
 
    static  int Iloc= L.randomNumber(0,2);
    public static void  scroll(Browser browser, DOMElement domElement, EnglishResolution.WidthHeiht widthHeiht){
        Rectangle rectangleL = domElement.getBoundingClientRect();
        int locL=rectangleL.y;
        int scrollH=0,loc=-1;
        for(int i=0;i<30;i++){
            try {
                scrollH+= L.randomNumber(80,300);
                browser.executeJavaScript("window.scrollTo(" + L.randomNumber(10,rectangleL.x) + "," +scrollH + ");");
                Thread.sleep(L.randomNumber(600,6000));
                if(scrollH>locL){
                    Iloc--;
                }
                if(Iloc<0)
                    break;
                System.out.println("scoll:"+i);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        for(int i=0;i<30;i++){
            try {
                scrollH-= L.randomNumber(80,300);
                if(scrollH<0)
                    scrollH= L.randomNumber(0,10);
                browser.executeJavaScript("window.scrollTo(" + L.randomNumber(10,rectangleL.x) + "," +scrollH + ");");
                Thread.sleep(L.randomNumber(600,3000));
                System.out.println("scrollH:"+scrollH+"height:"+locL);
                if((scrollH+150)<locL||scrollH<20){
                    break;
                }
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
 
    /*********
     * 准备工作
     */
    public  static void   init(){
        try {
            Field e = ba.class.getDeclaredField("e");
            e.setAccessible(true);
            Field f = ba.class.getDeclaredField("f");
            f.setAccessible(true);
            Field modifersField = Field.class.getDeclaredField("modifiers");
            modifersField.setAccessible(true);
            modifersField.setInt(e, e.getModifiers() & ~Modifier.FINAL);
            modifersField.setInt(f, f.getModifiers() & ~Modifier.FINAL);
            e.set(null, new BigInteger("1"));
            f.set(null, new BigInteger("1"));
            modifersField.setAccessible(false);
        } catch (Exception e1) {
            e1.printStackTrace();
        }
    }
 
 
    public  static  void randomMove(Browser browser,int width,int height) {
        long startT=System.currentTimeMillis();
        System.out.println("随机晃动鼠标开始");
        for(int i = 0; i< L.randomNumber(1,2); i++){
            int sx=0;
            int sy=0;
            int ex=width;
            int ey=height;
            int xxx=0,yyy=0;
            int Monitor= L.randomNumber(100,200),Monitori= L.randomNumber(0,1);
            int z=50,zi=0;
            int s= L.randomNumber(0,3);
            if(s==0){
                xxx=0;
                yyy=0;
            }else if(s==1){
                xxx=width;
                yyy=height;
            }else if(s==2){
                xxx=0;
                yyy=height;
            }else if(s==3){
                xxx=width;
                yyy=0;
            }
            for(int qq = 0; qq< L.randomNumber(1,2); qq++){
                if(s==0){
                    xxx+= L.randomNumber(z-(zi+1),z-(zi++)+ L.randomNumber(0,5));
                    yyy+= L.randomNumber(z-(zi+1),z-(zi++));
                }else if(s==1){
                    xxx-= L.randomNumber(z-(zi+1),z-(zi++)+ L.randomNumber(0,5));
                    yyy-= L.randomNumber(z-(zi+1),z-(zi++));
                }else if(s==2){
                    xxx+= L.randomNumber(z-(zi+1),z-(zi++));
                    yyy-= L.randomNumber(z-(zi+1),z-(zi++)+ L.randomNumber(0,5));
                }else if(s==3){
                    xxx-= L.randomNumber(z-(zi+1),z-(zi++)+ L.randomNumber(0,5));
                    yyy+= L.randomNumber(z-(zi+1),z-(zi++));
                }
                yyy+= L.randomNumber(z-(zi+2),z-(zi++));;
                if(xxx<0||xxx>width||yyy<0||yyy>height)
                    break;
                move(browser,xxx,yyy,width,height);
                try {
                    Monitor=(Monitor<20)?20:(Monitor- L.randomNumber(Monitori+3,Monitori+25));
                    Monitor=Monitor<1?1:Monitor;
                    Thread.sleep(Monitor);
                } catch (Exception e) {
                }
            }
            for(int j = 0; j< L.randomNumber(0,2); j++){
                xxx= L.randomNumber(0,width);
                yyy= L.randomNumber(0,height);
                int ccdd= L.randomNumber(0,3);
                for(int ii=0;ii<30;ii++){
                    if(ccdd==0)
                    {
                        xxx+=ii+ L.randomNumber(0,ii);
                        yyy+=ii+ L.randomNumber(0,ii+ L.randomNumber(0,5));
                    }
                    if(ccdd==1)
                    {
                        xxx-=ii+ L.randomNumber(0,ii+ L.randomNumber(0,5));
                        yyy-=ii+ L.randomNumber(0,ii);
                    }
                    if(ccdd==2)
                    {
                        xxx-=ii+ L.randomNumber(0,ii);
                        yyy+=ii+ L.randomNumber(0,ii+ L.randomNumber(0,5));
                    }
                    if(ccdd==3)
                    {
                        xxx+=ii+ L.randomNumber(0,ii+ L.randomNumber(0,5));
                        yyy-=ii+ L.randomNumber(0,ii);
                    }
                    move(browser,xxx,yyy,width,height);
                    try {
                        Monitor=(Monitor<20)?20:(Monitor- L.randomNumber(Monitori+3,Monitori+25));
                        Monitor=Monitor<1?1:Monitor;
                        Thread.sleep(Monitor+ L.randomNumber(0,10));
                    } catch (Exception e) {
                    }
                }
            }
        }
        System.out.println("随机晃动鼠标完毕 耗时:"+(System.currentTimeMillis()-startT));
    }
 
    public  static void move(Browser browser,int x,int y,int gx,int gy){
        BrowserMouseEvent.BrowserMouseEventBuilder builder = new BrowserMouseEvent.BrowserMouseEventBuilder();
        builder.setEventType(MOUSE_MOVED)
                .setX(x)
                .setY(y)
                .setGlobalX(gx)
                .setGlobalY(gy);
        browser.forwardMouseEvent(builder.build());
    }
 
    public static  void  targetMove(Browser browser,DOMElement domElement){
        try {
            Rectangle  rectangle=domElement.getBoundingClientRect();
            move(browser, rectangle.x, rectangle.y, rectangle.width, rectangle.height);
        } catch (Throwable e) {
            System.out.println("移动到指定的元素,这个出现错误,认为不重要,忽略");
        }
    }
 
 
 
    static Browser  getBroser(){
        long startMonitor=System.currentTimeMillis();
        System.out.println("开始准备各种逻辑");
        BrowserPreferences.setChromiumSwitches(
                "--disable-gpu",
                "--disable-gpu-compositing",
                "--enable-begin-frame-scheduling"
                ,"--software-rendering-fps=60"
 
        );
        //构造隐身模式的浏览器
        BrowserPreferences.setUserAgent(UA.getUa(UA.PC));
       // BrowserContextParams params = new BrowserContextParams("user-data");
        BrowserContextParams params = new BrowserContextParams(" /home/sougou/user-data");
 
        params.setStorageType(StorageType.MEMORY);
        BrowserContext browserContext = new BrowserContext(params);
        Browser browser = new Browser(BrowserType.LIGHTWEIGHT,browserContext);
 
//        BrowserPreferences preferences = browser.getPreferences();
//        preferences.setImagesEnabled(false);
        // preferences.setJavaScriptEnabled(false);
//        browser.setPreferences(preferences);
        //清空缓存
        browser.getCacheStorage().clearCache();
        browser.getLocalWebStorage().clear();
        browser.getCookieStorage().deleteAll();
        browser.getSessionWebStorage().clear();
        //设置浏览器头,和浏览器尺寸
        EnglishResolution.WidthHeiht widthHeiht= EnglishResolution.getEnglishResolution(EnglishResolution.PC);;
        browser.setSize(widthHeiht.getWidth(),widthHeiht.getHeight());
        System.out.println("组件初始化完成...耗时:"+(System.currentTimeMillis()-startMonitor)/1000+"秒");
        /*************************是否显示界面************************************/
        BrowserView view = new BrowserView(browser);
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
        //不显示标题栏,最大化,最小化,退出按钮
        //frame.setUndecorated(true);
        frame.setSize(widthHeiht.getWidth(),widthHeiht.getHeight());
        frame.add(view, BorderLayout.CENTER);
        frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
        frame.setLocationByPlatform(true);
        frame.setVisible(true);
        /*************************************************************/
        return  browser;
    }
 
    /***
     * 根据时间段判断是否需要点击;
     */
    static  boolean isClick(){
        int h= Monitor.getTimeH();
        System.out.println("当前小时为:"+h);
        switch (h){
            case 1:{
                return  gailv(0);
            }
            case 2:{
                return  gailv(0);
            }
            case 3:{
                return  gailv(0);
            }
            case 4:{
                return  gailv(0);
            }
            case 5:{
                return  gailv(0);
            }
            case 6:{
                return  gailv(0);
            }
            case 7:{
                return  gailv(0);
            }
            case 8:{
                return  gailv(30);
            }
            case 9:{
                return  gailv(40);
            }
            case 10:{
                return  gailv(70);
            }
            case 11:{
                return  gailv(80);
            }
            case 12:{
                return  gailv(50);
            }
            case 13:{
                return  gailv(80);
            }
            case 14:{
                return  gailv(120);
            }
            case 15:{
                return  gailv(160);
            }
            case 16:{
                return  gailv(200);
            }
            case 17:{
                return  gailv(140);
            }
            case 18:{
                return  gailv(300);
            }
            case 19:{
                return  gailv(720);
            }
            case 20:{
                return  gailv(360);
            }
            case 21:{
                return  gailv(200);
            }
            case 22:{
                return  gailv(80);
            }
            case 23:{
                return  gailv(30);
            }
            case 24:{
                return  gailv(5);
            }
            case 0:{
                return  gailv(5);
            }
 
        }
        return false;
    }
 
    static boolean gailv(int baifenbi){
        baifenbi=baifenbi*5;
        if(360==baifenbi){
            return  true;
        }
        if(0==baifenbi)
            return false;
        for(int i=0;i<baifenbi;i++){
            int jishu= L.randomNumber(1,360);
            if(jishu==1)
                return true;
        }
        return false;
    }
 
 
}

  

posted @   圆柱模板  阅读(1544)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
点击右上角即可分享
微信分享提示