Problem: centos6.5 installed a anaconda and Anaconda3 two versions, these two versions of the Python version is not the same, one is python2.7.10, one is python3.5.2
So how do you make the environment default to python2.7.10?
Upon review, we found
Dictionaries
The dictionary can be understood as an upgraded version of the listList
list={"Dandan", "Zhangsan", "Wangwu"}
Dictionary
dic={' name ': ' Faint ', ' sex ': ' Man ', ' professional ': ' Computer Science and Technology '}
If you need
Under Ubuntu16.04, python2.7 and python3.5 are installed by default, and in the terminal, enter "Python" or "python3" to view the specific version.
1. Configure the Pycharm JDK environment before installing pycharm
Pycharm requires JDK environment
This article begins with the loop statement, which, like other programming languages, has a while loop and a for loop in Python, which describes the while loop.
Grammar:
While condition expression is true:
Do some things
There are many such
stdin, stdout, and stderr variables contain stream objects that correspond to standard I/O streams.
If we need to better control the output, and print does not meet our requirements, they are what we need.
They can also be replaced by redirecting
Pip:
Before StackOverflow found a way to download a get-pip.py script to install, but once the PIP install--upgrade pip, it will error syntax error.
This is also the StackOverflow method, thoroughly solved before the problem.
Download
Preface
I recently made a digital identification on the card. Call the Caffe module, directly using the Mnist model, but this article does not speak Caffe.
Need to first a series of pretreatment of the picture, the number of cards separated out, a
1. Sliced Slice
Slice operator: eg. L[0:3], takes the index 0,1,2 element, does not include 3. L[-1] takes the penultimate element. L[:10:2] Take the first 10 elements and take them once every two times.
You can perform slice operations on list,
A few minutes to write a KNN python code, on the compiler can run directly:
"" "PROGRAMS:KNN algorithm description:1.calculate the distance between test data and every single train data 2.sort the Distance 3.select the minimum k points by distance
1. Install Python3 under Linux
A, prepare the compilation environment (if the environment is not correct, you may encounter various problems, such as wget can not download https linked files)
1 2
Yum Groupinstall "Development Tools"
1.Pipenv
Pipenv is a Kenneth Reitz amateur project designed to integrate other software packages, such as NPM and yarn, into Python. It does not need to install virtualenv, Virtualenvwrapper, do not manage requirements.txt files, and does not have
Linux+nginx+uwsgi
1. Install Nginx
sudo apt install nginx
sudo service nginx start
2. Overview of Nginx configuration, similar to Tomcat
# Program Files:/usr/sbin/nginx ############################################################################ #
1. The scope of the code in which variables function is referred to as variables, and the variables in different scopes do not affect each other. The variables defined inside the function are local variables, and the variables defined outside the
Python2 and Python3 properties of the processing and implementation is not the same, the internal implementation of a large difference, this article refers to the concept of narrow sense.
I. Attributes in the Python2
Attributes are declared using
Anaconda Overview
Anaconda is a Python release for scientific Computing, supports Linux, MAC, Windows, and provides package management and environmental management capabilities to easily address multiple versions of Python coexistence, switching,
principle:Because every time through the adventure model will have gold coins, and this action is very repetitive, even image recognition does not need to consider the use of procedures to replace artificial.
to put it simply, repeat the following
The list is a common data type in Python that is built into Python and inherits from object. Next, a comprehensive introduction to the list of common methods and their own implementation of the class list function of the class
Create a list
Create
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service