0. Python API http://mxnet.io/api/python/
1. Ndarray
A ndarray is a multidimensional container of items of the same type and size.
>>> x = Mx.nd.array ([[1, 2, 3], [4, 5, 6]])
>>> type (x)
>>> X.shape
(2, 3)
>>> y = x + mx.nd.ones (x.shape) *3
>>>
One, Python support for JSON
Starting with python2.6, the Python standard library has added support for JSON, which requires only import JSON when manipulating JSON. two, Python objects converted to JSON strings
When converting a Python object to a
The Logrotate program is a log file management tool. Used to split log files, delete old log files, and create new log files that play a "dump" role. can save disk space. The following is a logrotate log rotation operation to do a comb record:
1
Sina Weibo's API provides a multilingual interface in which Python's interface is provided by the user @ Liu Xuefeng.
Download address and Description: http://michaelliao.github.com/sinaweibopy/
Description Document:
Keyword: Anaconda opencv3 yumI tried to run the catch_usb_video.py script (source: http://www.cnblogs.com/neo-T/p/6426029.html) in the Anaconda Python environment, and the results reported the following error:OpenCV (3.4.1) error:unspecified Error
Naive BayesianPros: Still valid with less data, can handle multiple categories of problemsCons: Sensitive to the way the input data is preparedApplicable data type: Nominal type dataThe core idea of naive Bayesian decision theory: Choosing the
I. WedgeNow that you've learned to write Python code, if you've written two Python files a.py and b.py and run them separately, you'll find that the two Python files work well. But what do you do if you want to pass a data between the two
Installation phase:
Installation of Sublime Text3:
Download URL: https://www.sublimetext.com/
When the download is complete, click Install.
Install the package Control:
Click Tools, install package
hexadecimal to decimalUsing the Int () function, the first argument is the string ' 0Xff ', the second argument is the description, and the string is a number of binary numbers. The result of the conversion is a decimal number.>>> int (' 0xf ', 16)15
str ='\u4eac\u4e1c\u653e\u517b\u7684\u722c\u866b' Method 1 using Unicode_escape decodingPrintStr.decode ('Unicode_escape')PrintUnicode (str,'Unicode_escape') Method 2: If it is in JSON format, use json.loads decodingPrintJson.loads (''%s
Co-process, also known as micro-threading, fiber. English name Coroutine. One sentence explains what a thread is: The process is a lightweight thread that is user-state .The co-process has its own register context and stack. When the schedule is
Install Pygame (This is the python3,32 bit)PIP installs this WHL fileJust run the code when you're done, it's short.import timeimport pygamefile=r‘C:\Users\chan\Desktop\Adele - All I Ask.mp3‘pygame.mixer.init()print("播放音乐1")track =
# "Object-oriented" "# "Access Restrictions"#如果要让内部属性不被外部访问, you can add double underlines and program private variables. Only the internal can be accessed and externally inaccessible.Class Student (object):def __init__ (Self,name,score):Self.__name
# "Functional Programming" """"function is a kind of encapsulation supported by Python, we can decompose complex tasks into simple tasks by splitting large pieces of code into functions through a layer of function calls, which can be called
Record Python implementation of greatest common divisor & minimum number of public digits two algorithmsConceptGreatest common divisor: refers to the largest of two or more integers in totalLeast common multiple: two or more integers of the public
Initial encodingThe transmission of the computer, and the actual storage is 01010101010.USA: ASCII code can only represent 256 possible, too fewIn order to solve this global problem of writing, the creation of the universal Code, UnicodeThere are
The path to learning in Python -2018/7/10
Blog Development Project Flow? In general, a project development process is divided into: Project requirements, design table structure, functional development, testing functions, products on-line, the
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