上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 123 下一页
摘要: 多人开发时,会出现明明在gitignore中忽略了.idea文件夹,但是提交时仍旧会出现.idea内文件变动的情况 原因 .idea已经被git跟踪,之后再加入.gitignore后是没有作用的 第一步 第二步,在.gitignore里添加.idea 阅读全文
posted @ 2020-03-13 13:08 公众号python学习开发 阅读(829) 评论(0) 推荐(0) 编辑
摘要: 快速上手 Python 命令行模块 Click 关于Click? 说下 Click 模块是干啥的,简单说,它就是把我们的 Python 脚本的一些函数,通过 添加带有 Click 关键字的装饰器进行装饰进而将函数调用的形式转化为命令行传参的形式然后执行。听不懂也没关系,我们会一步一步来,基本上按照我 阅读全文
posted @ 2020-03-11 12:42 公众号python学习开发 阅读(1585) 评论(0) 推荐(1) 编辑
摘要: ``` class Memo(type): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.__cache = {} def __new__(cls, *args, **kwargs): return type.__new__(cls, *args, **kwargs) def __call__ 阅读全文
posted @ 2020-03-02 14:25 公众号python学习开发 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 原文地址:https://realpython.com/python type checking/ 在本指南中,你将了解Python类型检查。传统上,Python解释器以灵活但隐式的方式处理类型。Python的最新版本允许你指定可由不同工具使用的显式类型提示,以帮助您更有效地开发代码。 通过本教程, 阅读全文
posted @ 2020-03-01 20:18 公众号python学习开发 阅读(3336) 评论(1) 推荐(4) 编辑
摘要: ``` FROM python:3.8 AS pipenv_build RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \ pip install pipenv COPY ./Pipfile* /tmp/ RUN cd /tmp && \ pipenv lock --requiremen 阅读全文
posted @ 2020-03-01 17:01 公众号python学习开发 阅读(940) 评论(0) 推荐(0) 编辑
摘要: JS代码 /* CryptoJS v3.1.2 code.google.com/p/crypto-js (c) 2009-2013 by Jeff Mott. All rights reserved. code.google.com/p/crypto-js/wiki/License */ var C 阅读全文
posted @ 2020-02-29 21:47 公众号python学习开发 阅读(1940) 评论(0) 推荐(0) 编辑
摘要: 开启GM_开头的函数,这里是开启 GM_log类似,console.log 阅读全文
posted @ 2020-02-28 15:56 公众号python学习开发 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 测试发现deepcopy是比较耗时的 有点问题,如果字典的值为对象那么会有问题。 阅读全文
posted @ 2020-02-27 21:55 公众号python学习开发 阅读(723) 评论(0) 推荐(0) 编辑
摘要: ```https://github.com/cxapython/boilerplate``` 阅读全文
posted @ 2020-02-26 17:53 公众号python学习开发 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 安装 阅读全文
posted @ 2020-02-23 22:48 公众号python学习开发 阅读(553) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 123 下一页