10. pytest -- skip and xfail marks

Catalog 1. Skip execution of test cases 1.1. @pytest.mark.skip decorator 1.2. pytest.skip method 1.3. @pytest.mark.skipif decorator 1.4. pytest.importorskip method 1.5. Skip test class 1.6. Skip test module 1.7. Skip specified file or directory 1.8. summary ...

Posted by dabigchz on Wed, 06 Nov 2019 00:43:01 -0800

Using Yolov3 for batch testing and custom saving under Windows

  1. Open the project file darknet.sln of Darknet with VS   2. Find detector.c for modification 1) add header file #include <sys/stat.h> #include<stdio.h> #include<time.h> #include<sys/types.h> 2) add GetFilename function char *GetFilename(char *p) { static char name[20] = { "" }; char *q ...

Posted by Micah D on Tue, 05 Nov 2019 11:59:54 -0800

Front end technology frontier 9

image.png image.png image.png Node.js uses Module module to divide different functions to simplify application development. var myModule = require('./myModule.js'); Some methods and variables are exposed outside the module, which can be implemented using the exports object. install Installation of Node.js under L ...

Posted by bigtimslim on Tue, 05 Nov 2019 10:00:34 -0800

C + + exception throwing and catching

Close to leaving, I decided to make up for the knowledge of C++11 that I had never learned before. Suddenly, I turned to exception handling. I felt it was a little fun and wrote a test program myself. Then the three views were completely subverted.The source code is as follows: #include <iostream> #include <string> #include <exc ...

Posted by djw821 on Tue, 05 Nov 2019 09:53:30 -0800

Nginx website service building - basic services, setting access rights

Nginx Nginx is a high-performance, lightweight web service software with high stability, low system resource consumption and high processing capacity for HTTP concurrent connections. Frequently used commands Experimental steps 1. Obtain the source package on Windows remotely and mount it on Linux2. Decompress the source package and download t ...

Posted by rofl90 on Tue, 05 Nov 2019 06:32:25 -0800

Crawling information of graduate tutors of China University of Metrology

I learned a lot when I climbed this website and got a better understanding of the basic knowledge of python. First, the usage of. join. It's better to handle the crawled text. Then, the following:: usage of xpath is used. It takes all peers behind the node, which is very easy to use. Then there's a puzz ...

Posted by Obsession on Sat, 02 Nov 2019 19:00:52 -0700

On recursion and closure in javascript

Recursion and closures, as an important part of js, are almost involved in front-end interviews, especially closures. Today, the leader of the front-end group asked me a question and gave a rough answer. I felt dissatisfied, so I relearned and wrote this article. Before we talk about these two concepts, let's review function expressions. Func ...

Posted by WebGeek182 on Sat, 02 Nov 2019 09:58:47 -0700

8-sentence code to realize message boxa of Delphi 10.3 inline hook under win10

First of all, I'd like to thank myy of Delphi's learning and communication group for debugging for 6 hours yesterday, which was finally completed. Let's record it so as not to let some fans detour. I can't understand the information of a certain degree. I think it's better to dig a hole and fill it up by myself.Two problems should be paid atten ...

Posted by jfs0479 on Fri, 01 Nov 2019 21:26:36 -0700

Scrapy reptile battle - crawling body color permutation 5 historical data

Website address: http://www.17500.cn/p5/all.php 1. Create a new crawler project scrapy startproject pfive 2. Create a new crawler in spiders directory scrapy genspider pfive_spider www.17500.cn 3. Modify the entry url in the crawler file start_urls = ['http://www.17500.cn/p5/all.php'] 4. Add crawling entry class PfiveItem ...

Posted by gid on Fri, 01 Nov 2019 04:32:47 -0700

python global replacement program

Exercise 1 - global replacement procedure: 1. Write a script to allow the user to perform global replacement of the specified file content as follows   python your_script.py old_str new_str filename2. After the replacement, print how many parts have been replaced 1. Contents of TXT: Ma Xianyu Shenzhen 173 13744234523 Qiao Yifei Guangzho ...

Posted by axnoran on Fri, 01 Nov 2019 02:55:12 -0700