levels of contents
摘要: 当代码提交到个人分支后,master上合并了他人对同一文件的变更,pull request里会提示有冲突。两种方法解决,先pull master到本地,本地会有冲突的文件提示 直接修改冲突文件 找到冲突文件冲突文件里会显示类似这样子: <<<<<<head xxx xxx >>>>>> 根据冲突文件 阅读全文
posted @ 2021-11-02 15:44 非文艺女青年 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 方法内部import: 方法1: import importlib importlib.import_module(""import的字符串"") 方法2: from django.utils.module_loading import import_string import_string('dj 阅读全文
posted @ 2021-09-16 13:55 非文艺女青年 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1.打开F12,切换到console 2.xpath定位,输入:$x("your_xpath_str") 3.css定位,输入:$$("your_css_str") 4.id,document.getElementById("xx") 5.class,document.getElementByCla 阅读全文
posted @ 2021-05-28 13:44 非文艺女青年 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 1.使用requests库请求get接口的传参问题 问题:请求一个get接口,语法:requests.get(url,params=param),其中param是一个字典,并且字典内部的valueb包含list,接口报400,无法请求成功 解决:requests.get(url,params=str 阅读全文
posted @ 2021-05-07 18:27 非文艺女青年 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 时间类型的转换,把excel中时间转成python 时间(两种方式) xlrd.xldate_as_tuple(cell_value, 0) #转化为元组形式 =(2014, 7, 8, 0, 0, 0) xlrd.xldate.xldate_as_datetime(cell_value, 0) # 阅读全文
posted @ 2020-05-06 09:05 非文艺女青年 阅读(625) 评论(0) 推荐(0) 编辑
摘要: pass 阅读全文
posted @ 2019-12-25 17:48 非文艺女青年 阅读(97) 评论(0) 推荐(0) 编辑
摘要: pass 阅读全文
posted @ 2019-12-25 17:45 非文艺女青年 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1、导入模块 from pykafka import KafkaClient,common 2、实例化 client = KafkaClient(hosts="host:port") #实例化print(client.topics)print(client.brokers)ps:一个坑broker打 阅读全文
posted @ 2019-12-25 17:34 非文艺女青年 阅读(2143) 评论(0) 推荐(0) 编辑
摘要: 1.导入tkinter模块 import Tkinter 2.创建控件并启动 root = Tkinter.Tk() root.title('设置窗口标题') # 设置窗口标题 # 进入消息循环 root.mainloop() 3.在界面上添加常用组件 a = Label(root, text='t 阅读全文
posted @ 2019-12-25 17:33 非文艺女青年 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: pip freeze>requirements.txt #导出所有已经安装的模块到文件pip install -r requirements.txt #安装文件里的所有模块 阅读全文
posted @ 2019-11-28 09:01 非文艺女青年 阅读(1661) 评论(0) 推荐(0) 编辑
levels of contents