Loading

摘要: Translation:翻译插件,快捷键:cmd+ctl+u;https://yiiguxing.gitee.io/translation-plugin/start.html Markdown statistic: 统计代码行数 Json Parser:json 格式化插件 SonarLint:代码 阅读全文
posted @ 2023-03-10 14:27 ABEELAN 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 插件介绍 PlantUML 是画程序时序图的,Pycharm 有插件,可以创建 *.puml 文件,非常方便。 官方网站:http://plantuml.com/sequence-diagram 在线使用:https://plantuml.ceshiren.com/uml/SyfFKj2rKt3Co 阅读全文
posted @ 2023-03-10 14:26 ABEELAN 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 原因是配置了版本控制,但是目录却没有添加到版本控制内 设置 - VersionControl - Directory Mappings - 项目的 VCS 设置为 none 即可。 阅读全文
posted @ 2023-03-10 14:25 ABEELAN 阅读(30) 评论(0) 推荐(0) 编辑
摘要: def _is_page(self, locator): """判断是否到达指定页面""" caller_name = traceback.extract_stack()[-2][2] is_page = self.ele_actions(locator).exists() self.log.opt 阅读全文
posted @ 2023-03-10 14:22 ABEELAN 阅读(112) 评论(0) 推荐(0) 编辑
摘要: python 项目中的依赖库,可以创建一个requirements.txt文件来管理。 allure-pytest=2.12.0 pytest=7.2.0 pytest-rerunfailures=10.3 pytest-sugar=0.9.6 # 安装 $ pip install -r requi 阅读全文
posted @ 2023-03-10 14:21 ABEELAN 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Mac Python 3.7 https://www.modb.pro/db/454999 安装 # 搜索仓库 $ brew search gdb # 安装 $ brew install gdb Error: python@3.10: the bottle needs the Apple Comma 阅读全文
posted @ 2023-03-10 14:19 ABEELAN 阅读(271) 评论(0) 推荐(0) 编辑
摘要: python 连接数据库操作 pymysql import pymysql def get_connect(): connect = pymysql.connect( host="xxx.com", port=3306, user="test", password="test1234", datab 阅读全文
posted @ 2023-03-10 14:18 ABEELAN 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 数据处理 pandas 数据读取 pd.read_csv:csv/tsv/txt 用逗号、tab 分隔的纯文本文件 pd.read_excel::微软 xls 或者 xlsx 文件 pd.read_sql:mysql 关系型数据库 pd.read_csv 读取纯文本文件 userId,movieId 阅读全文
posted @ 2023-03-10 14:17 ABEELAN 阅读(5) 评论(0) 推荐(0) 编辑
摘要: else 使用汇总。 问题 阅读别人代码,有点疑惑,精简后如下: def code_example(arg=None): for i in range(5): if arg: break else: print('else branch') 循环语句后面直接跟了 else 语句,未报错,程序正常运行 阅读全文
posted @ 2023-03-10 14:16 ABEELAN 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 递归学习,通过汉诺塔游戏加强理解! 递归 在一个函数内部调用自身本身,就是递归函数。 阶乘 5 的阶乘为:5*4*3*2*1 n 的阶乘为:1*2*3*…*(n-1) 所以其实就是n*(n-1)的循环,只有当n=1时,需要特殊处理。 # 递归实现,暂不考虑负数和零 def fact(n): if n 阅读全文
posted @ 2023-03-10 14:15 ABEELAN 阅读(23) 评论(0) 推荐(0) 编辑