# PythonAdvance **Repository Path**: shaowei11/PythonAdvance ## Basic Information - **Project Name**: PythonAdvance - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-03-25 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Decorator(装饰器) ```shell >>> a = {'POST', 'GET'} >>> b = {'POTIONS'} >>> a |= b >>> a {'POTIONS', 'POST', 'GET'} >>> 1 | 0 1 ``` ```python isinstance(2, (str, int)) ``` ``` >>> a = lambda x: x >>> a('32') '32' >>> a(3 + 1) 4 >>> ```