01 2022 档案
摘要:在执行pytest的时候,报错: D:\Users\User\Desktop\pytest_practice_V5\vvenv\Scripts\python.exe D:/Users/User/Desktop/pytest_practice_V5/main_run.py Traceback (mos
阅读全文
摘要:交集 直接用循环取 a = [2,3,4,5] b = [2,5,8] tmp = [val for val in a if val in b] 使用list的intersection方法 a=[2,3,4,5] b=[2,5,8] tmp = list(set(a).intersection(se
阅读全文
摘要:前言 前段时间突然被人问到python的协程,当场我就宕机了。然后就开始查询各种资料,来弥补这里的欠缺。虽然暂时没实战过,但总比啥都不知道好一些。 当我学了一些资料之后,我发现网上资料,大多数代码是这样的: import asyncio, time async def hello(x): print
阅读全文
摘要:拉取指定分支: git clone -b 分支名 远程仓库地址 git fetch git switch -c new-branch orgin/master git push origin new-branch git stash push git reset --hard git clean -
阅读全文

浙公网安备 33010602011771号