基礎語法:
例如:#單行注釋
““多行注釋””
例如:x=5.
例如:int, float, str, bool
例如:int( ), float( ),
str( ), bool( )
例如:+, - , * , / , // , % , **
例如:== , != ,>, <, >=, <=
例如:and, or, not
例如:&, |, ^, ~, <<, >>
數據結構:
例如:my_list =[1, 2, 3]
例如:my_tuple=(1, 2, 3)
例如:my_dict={'key': 'value'}
例如: my_set= set( my_list)
例如:[xfor xin iterable]
例如:
{k:v for k, vin iterable}
例如:{xfor xin iterable }
控制流:
例如:if, elif, else
例如:for item in iterable
例如:while condition