文件名称:Python-Advanced:根据重要主题准备Python面试
文件大小:16KB
文件格式:ZIP
更新时间:2024-04-21 09:26:05
Python
*脚本环境 Python程序可以作为独立脚本执行,也可以作为我们从程序中其他文件导入的模块执行。 如果当前程序的名称为main,则它将作为脚本执行。 # Execute only the program is run as a script/stand-alone program if __name__ == '__main__' : # Do script related actions pass else : # what happens when treated as module pass 正确列举 枚举返回一个枚举对象,可迭代必须是一个序列。 由enumerate()返回的迭代器的_ next _()方法返回一个元组,该元组包含一个计数(从起始位置开始,默认为0)以及通过对iterable进行迭代而获得的值。 # enumerate(iterable, s
【文件预览】:
Python-Advanced-main
----Agrs_Kwargs.py(473B)
----Generator.py(1KB)
----Interview Problems.py(3KB)
----Context Manager.py(561B)
----Re_Generator.py(433B)
----List vs Tuples.py(550B)
----Class Variables.py(1KB)
----states-and-districts.json(21KB)
----Type Hinting.py(481B)
----Coroutine.py(1KB)
----StaticMethod ClassMethod.py(362B)
----Abstract Class.py(458B)
----Exception Handling.py(460B)
----Decorator.py(1KB)
----Descriptors.py(0B)
----Super.py(1KB)
----README.md(963B)
----Mutable and Immutable.py(1002B)
----Class Dunders .py(1KB)
----REST API-HackerRank.py(1KB)