1,ssh Login Virtual machine (remote server)
2, build the configuration file
Jupyter Notebook--generate-config
3. Generate password This step is not actually used, because the password is not recommended to log in, modify the configuration file when
There is nothing to do to get the weather API, roughly checked, the domestic relatively good or Chinese weather Network (China Meteorological station), the portal has Sina and Tencent (search), other some small sites worry about instability, so no
DirectoryRead data display data display rows and columns view data format dtpyes display column name add default column name Display data 5 rows after display of data unique values skipped line I of the file does not read the missing value
Chapter II NumPy Foundation
2.6 Changing the dimension of an array
Ravel (), flatten () flatten multidimensional arraysB.transpose () matrix transpose, equivalent to B. T, one-dimensional arrays are invariant
reshape () changing the array dimension
Http://blog.sina.com.cn/s/blog_53d874320102vdvu.html
Log in with the Python SSH module and execute shell commands on the remote machine
(in CentOS 7 The environmental test was successful, the Redhat series should be compatible.) )
Install the
1. Storing data in Python statementsWhen writing a file, we mainly use the with open () statement:With open (name,mode,encoding) as File:file.write () # Note that the statement following the with open () has an indentName: A string containing the
Introduction to the analysis of the target website Login modeDestination Address: Https://github.com/loginLogin method to make analysis: First, using form form to submit information, second, there is Csrf_token, third, is the POST request to send
1 ImportJSON2 ImportRe3 fromUrllib.requestImportUrlopen#urllib usage: https://www.jb51.net/article/65279.htm4 5 #idea: Get Web content by URL-"Match needs content---" Get content to write to file6 7 8 defget_page (URL):9 """Ten Get the page
The variable names in Python are parsed at compile time, in other words, at compile time (that is, when the interactive console enters the code or import file), Python has decided whether a variable should be a local variable or a global variable.
The Math module implements a number of mathematical functions for floating-point numbers. These functions are generally a simple encapsulation of functions of the same name in the Platform C Library, so the results of calculations under different
One, yesterday content Review Div: Split the whole site, lots of blocks(1) Layout label(2) block-level label exclusive line can be set high and wide, if not set width, the default is the width of the parent boxSpan(1) Small area (2) text label (3)
DescriptionCode snippets from the Internet or written by yourself.Fahrenheit temperature to Celsius"""将华氏温度转换为摄氏温度F = 1.8C + 32Version: 0.1Author: 骆昊Date: 2018-02-27"""f = float(input(‘请输入华氏温度: ‘))c = (f - 32) / 1.8print(‘%.1f华氏度 = %.1f摄氏度‘ % (f, c))
GitHub AddressTo import a library using Cython, you need a few files:
. c:c function Source code
. h:c function Header
. Pxd:cython function Header
. Pyx: Wrapper function
Setup.py:python
Examples of this section are: C
Set set: Unordered immutable values (numbers, characters, Ganso) made up of different elements (which are automatically de-weighed)s = {1,2,3,4,5}S=set (' Hello ')Set.add (x)//add element x to setSet.clear ()//condition SetS=set.copy ()//Set.pop ()//
1 What is an operating systemOperating system is located between the computer and application software, is a coordination, management, control of computer hardware resources and software resources of the program2 Why do I have an operating system?1.
ObjectiveThe previous article is a button on the pop-up box to save the file, this article describes a more elegant way to load Firefox and chrome configuration files, do not pop up the query box background download.First, Firefoxprofile1. Click on
#判断What is judgment:If certain conditions are met, one can do something, and when the condition is not satisfied, it cannot be done, which is called judgment.Not only in life, but also in software development, the function of "judging" is often
This article mainly introduces the single inheritance and multiple inheritance in Python, combined with an example, it analyzes the concept, principle, realization method of single inheritance and multi-inheritance in Python object-oriented
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