On the compilation and decompilation of Python
On the compilation and decompilation of pyyinstaller
It is very convenient to write scripts in Python, but it needs a specific Python environment to run. Therefore, if you want to run it on other computers, there will be many problems. Even if Python has been installed, the version may vary greatly, a ...
Posted by ak_mypayday on Wed, 26 Feb 2020 01:26:29 -0800
NVIDIA rapids cuGraph model
The RAPIDS cuGraph library is a set of graph analysis used to process data in GPU data frames - see cuDF. cuGraph is designed to provide NetworkX like API s that are familiar to data scientists, so they can now build GPU accelerated workflows more easily
Official documents:rapidsai/cugraphcuGraph API Re ...
Posted by florida_guy99 on Tue, 25 Feb 2020 06:53:28 -0800
Several useful python tools
1. PySnooper - debugging Kit
Installation:
pip install pysnooper
Using PySnooper to add a decorator to the function to be debugged, you can get the log of the running function, including the executed code line, execution time and the time when the local variable changes
Example
import pysnooper
@pys ...
Posted by The-Last-Escape on Mon, 24 Feb 2020 21:40:26 -0800
Performance tuning of Flask
Article directory
Summary
Tools used
test
Test code
Flash runs directly
Other ways
Gunicorn
uWSGI
usWSGI and ngnix
Reference resources
Summary
At present, the performance of the platform is found to be relatively low in the process of using, so we need to find a way to optimize the performance ...
Posted by kylebragger on Mon, 24 Feb 2020 04:21:08 -0800
Natural language processing: reading PDF document and creating word cloud
Like, pay attention to, and form good habits
For details of the series of courses, please refer to superstar learning link: https://me.chaoxing.com (click to link)
Welcome to guide
1. Preface
Recently, superstar learning general course needs several cover pictures (the template picture is not sat ...
Posted by insanityonline on Sat, 22 Feb 2020 21:12:52 -0800
Crawling more than 200000 pictures of mn52 beauties website with the framework of scratch, and packing them into exe executable file
Target website: https://www.mn52.com/
The code of this article has been uploaded to git and Baidu. The link is shared at the end of the article
Website overview
Target, grab all the pictures using the graph framework and save them locally.
1. Create a sketch project
scrapy startproject images
2. Create a spider
cd images
scrapy genspide ...
Posted by Hagaroo on Sat, 22 Feb 2020 20:51:09 -0800
[wechat assistance] at present, python helps you to find out Wuhan friends in your circle of friends and give them care
I am a programmer Xiaoye, bringing you original and wonderful technical content.
The epidemic situation is unbearable for both individuals and enterprises. I hope that the epidemic will pass as soon as possible, which is a small wish of ordinary people.
Relatives and friends around us are more or less ...
Posted by badassrocker on Thu, 20 Feb 2020 00:11:31 -0800
Shocked, Python cracked the BiliBili slider verification code to avoid human-computer identification perfectly
Python cracking BiliBili slider verification code
|Perfect is impossible, add a shock! Python breaks the BiliBili slider verification code, avoiding human-computer identification perfectly. It can have
Preparation
Landing page of station B https://passport.bilibili.com/login
python3
pip install sel ...
Posted by gunslinger008 on Sun, 16 Feb 2020 04:38:11 -0800
Django REST framework quick start
start
We will create a simple API to allow administrator users to view and edit users and groups in the system.
Project settings
Create a new django project named: < tutorial >, and then create a new app named: < QuickStart >.
# Create the project directory
mkdir tutorial
cd tutorial
# Create a virtual environment to isolate our p ...
Posted by skymanj on Sat, 15 Feb 2020 00:42:00 -0800
Python merging multiple Excel data
Installation module
1. Find the corresponding module http://www.python-excel.org/
2. Install with pip install
pip install xlrdpip install XlsxWriter
pip list view
XlsxWriter example
1 import xlsxwriter
2
3 # Create a workbook and add a worksheet
4 workbook = xlsxwriter.Workbook("demo.xlsx")
5 worksheet = workbook.add ...
Posted by strudo on Thu, 13 Feb 2020 10:23:09 -0800