Basic knowledge of Django

I. Installation and Use Download and install Command line: pip3 install django==1.11.21 pycharm Create a project Command line: Find a folder to store project files and open the terminal: Django-admin start project project project name Project catalogue pycahrm start-up command line ...

Posted by jerastraub on Fri, 09 Aug 2019 05:24:25 -0700

Sudoku by friends?python seconds solution only knows how to cut down?

The landowner who played with his neighbour the other day was found and his cards were confiscated. The landowner can't fight anymore, but I still want to play with his neighbour.If you still want to fight the landowner, stamp: Fight the landlord with the next neighbor while the old king is not there Wanting to break my mind finally reminds me ...

Posted by dannys on Tue, 06 Aug 2019 16:05:37 -0700

Detailed crawler steps based on scrapy framework (including href grabbing without the Next Page button)

Out of octopus, scrapy has been used to climb a commodity website in the past two days, which could have been much faster. One day, I spent time on a line of code and finally changed a parameter around a big circle. I hope you will take less detours. Many of them are a summary of Mucho. com. https://www ...

Posted by medaswho on Fri, 19 Jul 2019 03:01:00 -0700

K-Nearest Neighbor Algorithms

1. K-Nearest Neighbor Algorithms The configuration is as follows System Ubuntu Kylin IDE  Pycharm Community Language Python 3 2. Module Installation After installing Python 3 and IDE, we need to first install the relevant modules (i.e. function libraries) so that we can complete the next study. 1. pip3 installation sudo apt- ...

Posted by swissmissflash on Sat, 22 Jun 2019 17:35:57 -0700

Python, PyCharm 2017 Installation Tutorial, Including Registration Code

Copyright Statement: This article is the original article of blogger [limin13215]. Welcome to reprint it. Reprint the link address: http://blog.csdn.net/limin2928/article/details/69267184! Catalog (?)[+] [Introduction]: I knew it a long time ago Python It's a very powerful scripting language. I haven't had a thorough understanding ...

Posted by mhenke on Fri, 07 Jun 2019 13:15:30 -0700

Python 2 / Python 3 summary of solutions to the problem of empty line and Chinese encoding when writing csv files

Copyright Statement: This article is the original article of the blogger, reproduced please indicate.   Running environment: Python 2.7.13           python3.6.0        windows    IDE: pycharm Background: When crawling, you need to write in csv format, but find that the contents of the csv file are empty and display one line, which ...

Posted by jblallement on Tue, 04 Jun 2019 12:49:52 -0700

Notes - Day1 - Python Foundation 1

I. directory 1. Introduction to Python The founder of python, Guido van Rossum, is now a particularly frequent development language. Main application areas: Cloud Computing: The hottest language in cloud computing. Typical applications are OpenStack. WEB Development: Many excellent WEB frameworks, many large websites are Python development, su ...

Posted by Hitman2oo2 on Sun, 26 May 2019 17:29:25 -0700

Hand-on instructions on how to install Pycharm

Today, we will share with you how to download and install Pycharm locally. The specific tutorials are as follows: 1. Go to Pycharm's official website first, or enter the web address directly: http://www.jetbrains.com/pycharm/download/#section=windows , download the PyCharm installation package, select it according to your computer's operating ...

Posted by mmorton on Tue, 14 May 2019 04:53:54 -0700

Python-based functions and modules

Basic use of functions Definition of a function: A block of code with independent functions is organized into a small module and called when needed. In other words, functions are organized and reusable code segments for single or related functions. Function use: 1. Define function; 2. Call function. Function function: can improve the modula ...

Posted by duke on Thu, 25 Apr 2019 10:45:35 -0700

Python Path [Chapter 8]: Python Modules

Reading catalogue Modules and packages The concept of module: In the process of developing computer programs, as the program code is written more and more, the code in a file becomes longer and longer, and it is more and more difficult to maintain. In order to write maintainable code, we group many functions into different files, so that ea ...

Posted by sciencebear on Mon, 22 Apr 2019 09:09:33 -0700