码迷,mamicode.com
首页 >  
搜索关键字:初识 python    ( 139971个结果)
Python 安装与命令行参数 ,Pip 的命令参数--官方文档
python 解释器: 1、Python 命令行参数 --官方文档:https://docs.python.org/zh-cn/3/using/cmdline.html#options-you-shouldn-t-use 2、在Windows上使用 Python :https://docs.pyth ...
分类:编程语言   时间:2020-06-25 19:13:29    阅读次数:113
virtualenvwrapper.sh报错: There was a problem running the initialization hooks.解决
由于在ubuntu环境下,将python做与python3.6做了软链接(ln -s python python3.6),并且pip也被我做了软链接,所以导致用pip安装virtualenvwrapper之后,在source启动virtualenvwrapper.sh时以及workon 虚拟环境时总 ...
分类:移动开发   时间:2020-06-25 19:10:16    阅读次数:77
RSA
已知p,q,e求d p=473398607161 q=4511491 e=17 n = (p-1) * (q-1) def extendedEuclid(a, b): if b == 0: return 1, 0 else: x, y= extendedEuclid(b, a % b) x, y = ...
分类:其他好文   时间:2020-06-25 19:08:44    阅读次数:66
APP——自动化——python——系统未按装待测app和已经按装待测app不同配置
主要区别: 'app': 'C:\\Users\\del\\Desktop\\b\\jsq.apk', 安装了就不需要路径,没有安装就需要路径 一、系统未按装待测app # C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr na ...
分类:移动开发   时间:2020-06-25 17:56:52    阅读次数:109
python---filecmp 实现文件,目录,遍历子目录的差异对比功能。
python filecmp ilecmp可以实现文件,目录,遍历子目录的差异对比功能。 自带filecmp模块,无需安装。 常用方法说明 filecmp提供3个操作方法,cmp(单文件对比),cmpfile(多文件对比),dircmp(目录对比). 单文件对比,filecmp.cmp(f1,f2[ ...
分类:编程语言   时间:2020-06-25 17:55:51    阅读次数:59
python测试开发django-74.auth认证之is_active
前言 在 django 的 User 表里面有个 is_active 字段可以判断用户是否是激活状态。 使用 authenticate 校验登录的时候 is_active 是不生效的。 authenticate 登录 create_user 创建新用户的时候 is_active 默认是1,也就是Tr ...
分类:编程语言   时间:2020-06-25 17:54:10    阅读次数:69
python基础知识---关于时间的几个方法
time模块几个常用的时间函数 1、time()函数 返回当前时间的时间戳,从1970年1月1日00时00分00秒到现在的浮点秒数 time1 = time.time() 返回值:1593069205.7103553 类型:<class 'float'> 2、localtime([secs])函数 ...
分类:编程语言   时间:2020-06-25 17:49:42    阅读次数:80
LeetCode 139. 单词拆分 | Python
139. 单词拆分 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/word-break 题目 给定一个非空字符串 s 和一个包含非空单词列表的字典 wordDict,判定 s 是否可以被空格拆分为一个或多个在字典中出现的单词。 说明: 拆分时可以 ...
分类:编程语言   时间:2020-06-25 17:37:44    阅读次数:67
python项目_mysql开启事务
1.导入模块包 from django.db import transaction 2.设置回滚点 with transaction.atomic(): save_id = transaction.savepoint() # 设置回滚点 try: order = Order.objects.crea ...
分类:数据库   时间:2020-06-25 17:34:22    阅读次数:115
反转单链表
方法1: 迭代 时间复杂度:O(n) 空间复杂度:O(1) class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def reverseList(self, head: ListNod ...
分类:其他好文   时间:2020-06-25 17:31:04    阅读次数:44
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!