pycharm Jupyter
Multi-Environment Jupyter configuration 1
Activate TensorFlow
Conda install notebook ipykernel ipthon kernel install--user
Pycharm Switch to TensorFlow working environment, new *IPNB file, run. jupyter Drawing Black font display in Pycharm
Using the Matplotlib plot figure tick and the text color is black.Solution:1. Set Pycharm text background: setting→2. Set Pyplot drawing background color to white via rcparams
From matplotlib im
commands are used under Python3. Use the Deactivate command to cancel activation of the Python3.
Pure python Coexistence
Said to be pure, is not completely "pure", here needs to use another distribution Miniconda, it contains only python itself and Conda Package Manager, so small. The coexistence installation method when using Miniconda is exactly the same as the above steps.
Miniconda Download Homepage Summary
The coexistence of this article is base
". Invoking "CMake" failedSolutions
Check the Python version: wgb@wgb:~$ python-v
Check out Catkin-dependent python version: wgb@wgb:~$ dpkg-l python-catkin-pkg
If the version of Python is different from the version that Catkin relies on, there is a problem with the Python dependency package:
Conda Install Setuptools
pip install-u rosdep rosinstall_generator wstool rosinstall six Vcstools
4 No module named EM problem
Importerror:no Module named
appears, the setting is successful.OPENCV InstallationOPENCV installation, online has a variety of methods, with CMake compilation is a giant pit, here is a very brain-free method.We used Anaconda to install the Anaconda because it was loaded.Using commands
$ Conda install-c Https://conda.binstar.org/menpo OpenCV
He will install all the environment he needs.When you are finished installing
Import Cv2
If there is no prompt
WIN10 installation Anaconda31. Installing Anaconda3Select the appropriate anaconda to install, click here, download the corresponding system version of the Anaconda, the official website is now the version of Anaconda 4.3.1 for python3.6. The author installs the version 4.3.0.As with the installation of ordinary software, all choose the default, note the python3.6 added to the environment variable .So anaconda is installed, we can use the following command to see which packages Anaconda have ins
Python installation Graphviz
Pip Install Graphviz//This should be installed first Graphviz (website download installation) Anaconda installation Graphviz
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, and a variety of third-party package installation issues. Anaconda uses tools/command
Share with you today a good way to install the Python library. First inform me of the operating system is WIN7,PYTHON3.5,ANACONDA3 scientific computing platform (built-in Jupyter notebook); Secondly, I also assume that you have already used pip install PackageName (installation package name) and Conda Install the PackageName method.
If you want to play scientific computing such as data analysis, machine learning and computer vision, I suggest that you
open include file: ' Config-win.h ': No such file or directoryCause: The associated version of the MySQL connector is inconsistent.Depressed, why also need MySQL Connector.Too toss, search a bit, unofficial online, there are 64-bit Mysql-python Download:http://www.codegood.com/archives/129After installation, test again:PythonImport MySQLdbOK, okay.Colleagues recommend using Conda to manage the Python development environment, as described below:Anacon
What is Anaconda
Anaconda refers to an open source Python release that contains more than 180 science packages and their dependencies, including Conda, Python. With a large number of scientific packages, the Anaconda download file is larger (approximately MB), and if you need only some packages, or you need to conserve bandwidth or storage space, you can also use Miniconda, a smaller release (only Conda an
Today, it's a magical thing to do when using Python to operate a Redis database, if you are using PIP install Redis to install a Python-attached module, but if you are using Conda in Anaconda Stall-c Anaconda Redis installed is the Redis database, this problem toss an afternoon, eventually still understand, in fact, in the use of Conda to install is redis-py this file, but as to the PIP installation and
array = [1,2,3,4,5,6];console.log(array.length); // 6array.length = 3;console.log(array.length); // 3console.log(array); // [1,2,3]Replace all
String.replace()The function allows you to use a string or regular expression to replace a string. In itself, this function only replaces the string that appears for the first time. However, you can use regular expressions to express multiple/gTo simulatereplaceAll()Function:
var string = "john john";console.log(string.replace(/hn/, "
containing more than two letters E in their names, to form a list
Copy CodeThe code is as follows:
names = [[' Tom ', ' Billy ', ' Jefferson ', ' Andrew ', ' Wesley ', ' Steven ', ' Joe '],
[' Alice ', ' Jill ', ' Ana ', ' Wendy ', ' Jennifer ', ' Sherry ', ' Eva ']
Implemented with A For loop:
Copy CodeThe code is as follows:
TMP = []
For LST in Names:
For name in LST:
If Name.count (' E ') >= 2:
Tmp.append (name)
Print tmp
#输出结果
>>>
[' Jeff
Some time ago, in order to find the keyword ranking of Lao Wang python, I wrote a keyword ranking for searching web pages using python.Program, It seems that the effect is not bad. In particular, it is very convenient to search for webpages with the keyword ranking back. You don't have to manually flip pages one by one.Code.
#! /Usr/bin/ENV Python
#-*-Coding: UTF-8 -*-
# @ Author: WL
# @ Qq: 280026798@qq.com
# @ Description: Check the ranking of a given keyword on Baidu
Import
it is used to delete some elements in the array. For example, if your array has 10 elements, but you only want to use the first five elements, you can use array. length = 5 to truncate the array. For example:
var array = [1,2,3,4,5,6];console.log(array.length); // 6array.length = 3;console.log(array.length); // 3console.log(array); // [1,2,3]
Replace all
String. the replace () function allows you to use a string or regular expression to replace a string. This function only replaces the string t
will occur.
After the problem is found, it is easy to solve the problem. Modify next extent to 128 k and pct increase to 0.
I don't know who set it. It's a low-level error.
--------------------------------------------- Split line ---------------------------------------------
Symptom:
The test database uses the following method to create an index:
Create index IDX_ANA_OFFICE on ANA (OFFICE_CITY, OFFICE_NO)Tablespace IDXPctfree 10Initrans 2Maxtrans 255
the reciprocal element from the array:
var array = [1, 2, 3, 4, 5, 6]; console.log(array.slice(-1)); // [6] console.log(array.slice(-2)); // [5,6] console.log(array.slice(-3)); // [4,5,6]
8) array truncation
This technique can lock the array size, which is very useful for deleting a fixed number of elements in the array. For example, if you have an array containing 10 elements, but you only want to obtain the first five elements, you can set array. length = 5 to the phase array. Let's take a l
(-2)); // [5,6] console.log(array.slice(-3)); // [4,5,6]
Array truncation
This tip is mainly used to lock the array size. It is very useful if it is used to delete some elements in the array. For example, if your array has 10 elements, but you only want to use the first five elements, you can use array. length = 5 to truncate the array. For example:
var array = [1,2,3,4,5,6]; console.log(array.length); // 6 array.length = 3; console.log(array.length); // 3 console.log(array); // [1,2,3]
Replace
In my personal understanding, the inline view usually refers to the result of an SQL query as a data source for another query, usually after the from clauseAny indicates that any one of the datasets is equal to or.X> Any (select Sal from EMP where job = 'ana ')It is equivalent:Exists (select Sal from EMP where job = 'ana 'and x> Sal)Subqueries using all and any can always be replaced by embedded views, and
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.