Python crawler - download Baidu Post Bar image

... put the code on the program import urllib.request Import os Import easygui as g Import re Def url_open(url): Req = urllib.request.Request(url) Req.add_header('User-Agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.3...


IAlexanderI's column

... This tutorial is translated from http://zetcode.com/gui/pyqt5/, because of the limited level, it is inevitable that there will be a leak, hope understanding, if it is difficult to understand, you can directly look at the English website. This tutorial is for beginners and intermediate...


Solve jupyter ImportError: No module named 'tensorflow' problem

... jupyter is installed via anaconda Anaconda comes with a separate python environment, and the python you downloaded and installed on the python website is two environments. If you want to use the tensorflow package in jupyter, try one of the following two options: 1 Open your anaconda...


The role of python thread join

... Several facts 1 python After the default parameter is created, no matter whether the main thread is executed or not, it will wait for the child thread to finish executing before exiting. If there is no join result, 2 If the thread is created and the daemon is set to true, that is,...


Jupyter notebook tips

... 1. Introduction: Jupyther notebook, also known as Ipython notebook, is a code, images, notes, formulas and diagrams in one place, so that it can be read A flexible tool for sexual analysis. By default, Jupyter Notebook uses the Python kernel, which is why it was originally called...


Creating an executable from a Python script

... Python is one of my favorite programming languages. That being said, if you ever had to deploy an application written in Python, then you know how painful it is. Fortunately, there are some great open source tools for packaging Python programs into stand-alone binary executables that...


For everyone's benefit, use Python to climb all the sisters of a website!

... The name of this website is called Goddess. The goddess inside is very beautiful and sexy, so use this website as an example today. Before introducing the part-time job, Xiaobian has something to say, Xiaobian is currently working on Python for almost 6 years, because the recent...


Shortcuts in IPython

... navigation shortcuts Ctrl+a: Move the cursor to the beginning of the line Ctrl+e: Move the cursor to the end of the line Ctrl+b (or left arrow): Return the cursor to a character Ctrl+f (or right arrow): Advance the cursor one character Command shortcut Ctrl+d: Delete the next character...


One programming question per day LeetCode-Add Two Numbers

... First of all, thank the students for their support of Xiaotian. Today we will explain the topic Add Two Numbers, which LeetCode classifies as moderate difficulty. 题简介 Use two empty single linked lists to store non-negative integers, and the nodes of the single linked list store each...


Python3.x and python2.x coexist in the window environment and install tensorflow

... Background: project needs to run some python2.7 code, currently some machines are win10 environment, python3.5, tensorflow- Gpu1.10.0, CUDA9.0. The first thing I wanted to do was to install python2.7 and tensorflow directly on an existing basis. Conclusion: Windows environment, when...