Welcome to K230 Vision Module repository
5. Micropython Quick Start
Micropython Quick Start
Micropython Quick Start1. What is Micropython2. Python 3 BasicsNotesPrimitive data types and operatorsVariables and CollectionsFlow Control and IteratorsfunctionModuleskindClass inheritance3. Micropython other related API usage
1. What is Micropython
MicroPython is a streamlined and efficient implementation of the programming language Python3. Its syntax is consistent with Python3, but it only implements a small part of the Python standard library. MicroPython is optimized for use in the Internet of Things (IoT), consumer electronics, and embedded systems. Python is a weakly typed language with efficient and concise syntax. Before we start using our K230, let's first master some basic knowledge of Python syntax.
2. Python 3 Basics
This article is based on Louie Dinh's "Getting Started with Python 3 in 10 Minutes", translated by Geoff Liu
Notes
x# Line comments start with a pound sign""" Use three quotes for multi-line strings Packages are also often used to make multiple Line Comments"""Primitive data types and operators
xxxxxxxxxx###################################################### 1. Primitive data types and operators##################################################### Integer3 # => 3# Nothing unexpected in arithmetic1 + 1 # => 28 - 1 # => 710 * 2 # => 20