python基本语法1.3--注释说明以及空格说明

# -*- coding: utf-8 -*-
#或者写成下面这种形式
# coding: utf-8
#注意空格的对齐
try: x = 100 y = 200 except IndentationError: print('IndentationError: unexpected indent') # 单行注释 ''' 多行注释 多行注释 ''' # 多行代码 str = 'abcd' \ 'efgh' print(str) # 多行字符串 str = 'Hello\nworld' print(str) str = """Hello world""" print(str)