# PythonBooks **Repository Path**: jeffreysharp/python-books ## Basic Information - **Project Name**: PythonBooks - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-27 - **Last Updated**: 2023-10-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 目的 重学python3 为提高效率 直接采取看书+抄代码的方式 目前参考书籍 1.python极客项目编程 2.python编程快速上手 让繁琐工作自动化 # python极客项目编程 # python编程快速上手 ```python for i in range(0, 10, 2): print(i) ``` ```python def spam(divideBy): try: return 42 / divideBy except ZeroDivisionError: print('Error: Invalid argument.') ``` ```python supplies = ['pen', 'staplers', 'flame-throwers', 'binders'] x = [1, 3] y = [0, 1] for i in range(len(supplies)): if i in x: print('Index' + str(i) + ' in supplies is: ' + supplies[i]) elif i not in y: print('i not in y') else: print('index %d' % i) ```