renho的开发笔记
import sys print(__name__) if __name__ == ‘__main__’: p…
# expression for item in iterable if condition # list推导…
# 本质是迭代器 # 可以迭代, 节省内存 def generator(): try: yield [i fo…
import os import asyncio import aiohttp import aiofiles…
“””Module providing a function printing python version.…
import time import threading from concurrent.futures im…
读文件 import pandas as pd df = pd.read_excel(‘data.xlsx’)…
import asyncio import threading # 传入name参数: async def h…
import asyncio import time print(“\n\n=== 2. 异步模式开始 (请注…
集合 # set s1 = {1, 2, 3, 4} print(type(s1)) print(s1) s1…