pytest document 37 - Custom use case ordering
Preface
In the design of test cases, we generally require that there is no order. Use cases can disrupt the execution, so as to achieve the test effect When some students write use cases, they write the order of use cases. After the order, there will be new problems (for example, the data returned from the previous use case is used as the para ...
Posted by Wolverine68 on Wed, 29 Apr 2020 07:55:00 -0700
Regular expression - basic use of common metacharacters
Common metacharacters are:
[] ^ $ \ * + ? {} .
Using regular expression in python needs to import re module
Here's how
[] specifies a character set, [ABC] represents the character set of ABC, and [^ ABC] is reversed, except for the character set of ABC.
>>> import re
>>> r = r"ABC[ABC]" #Define a regular
>>>
&g ...
Posted by factoring2117 on Tue, 28 Apr 2020 10:22:16 -0700
pyecharts map visualization
pyecharts: Official documents
Here we use the pyecharts module for drawing.
The pyecharts project contains a series of geographic map data. These data are either built-in or need additional installation and loading. We need to download the following six packages.
Choose the installation you need
pip install echarts-countries-pypkg
pip ins ...
Posted by Matth_S on Tue, 28 Apr 2020 09:03:41 -0700
pyecharts map visualization
pyecharts: Official documents
Here we use the pyecharts module for drawing.
The pyecharts project contains a series of geographic map data. These data are either built-in or need additional installation and loading. We need to download the following six packages.
Choose the installation you need
pip install echarts-countries-pypkg
pip ins ...
Posted by Alex-B on Tue, 28 Apr 2020 08:44:36 -0700
[interesting case] who says programmers are not romantic? Python exports wechat chat record to generate love word cloud
When it comes to CI Yun, it's not strange. I don't know how to look down on my boots
Word cloud refers to the high frequency
The visual prominence of "key words"
Visitors can grasp the main idea of the text at a glance
See if this is a little love with sound and picture~
Today we collect the daily conversation between lovers
Use this ...
Posted by herghost on Tue, 28 Apr 2020 02:13:30 -0700
Five ways to add new columns in the PySpark data box
Too much data is being generated every day.
Although sometimes we can use tools such as Rapids or parallelism to manage big data, Spark is a good tool if you use TB level data.
Although this article explains how to use RDD and basic Dataframe operations, I missed a lot when using PySpark Dataframes.
Only when I need more functions can I read an ...
Posted by Journey44 on Tue, 28 Apr 2020 02:02:59 -0700
Basic knowledge of Flask
Introduction:
Flask is based on python and relies on jinjia2 and werkzeug WSGI services as a micro framework
Werkzeug is essentially a Socket server, which is used to receive http requests and preprocess them, then trigger the Flask framework,
Developers process the request based on the functions provided by the Flask framework and return it to ...
Posted by lessthanthree on Tue, 28 Apr 2020 01:53:50 -0700
Python log processing module
. Its main advantages are as follows:
1. You can set different log levels to output only important information in the release version without displaying a large number of debugging information;
2. Especiall ...
Posted by Mucello on Mon, 27 Apr 2020 09:29:23 -0700
WeChat official account development study (1) -- official account number and server configuration
A new WeChat official account has been applied for.
1. Apply for the account of wechat public platform, and then apply for Tencent cloud recommended by him to do demo
2. After applying for centos host, get the public ip and password. After ssh login, follow the demo prompt
3. Install web.py.
wget -c http://webpy.o ...
Posted by gjb79 on Mon, 27 Apr 2020 08:21:54 -0700
vnpy source reading and learning back to OptionMaster
Back to OptionMaster
According to our code reading of APP calling, we basically know how an app is called. Then we go back to OptionMaster to learn the implementation of this app.
Look at the structure
class OptionManager(QtWidgets.QWidget):
""""""
signal_new_portfolio = QtCore.pyqtSignal(Event)
def __init__(self, main_engine: Main ...
Posted by pthes on Sun, 26 Apr 2020 21:09:18 -0700