-
auto
2019-08-11 11:27:12
python
2691°
20
编写函数,接受一个整数,返回改数的所有质因子。调用该函数进行求解测试。import math x = ...
-
auto
2019-08-11 11:27:12
python
1840°
20
场景设计: 1.... 测试场景 打开Baidu 输入selenium 点击搜索按钮 关闭浏览器#-*- encoding:utf-8 -*-...
-
auto
2019-08-11 11:27:12
python
2141°
20
1. 使用del删除指定元素li = [1, 2, 3, 4] del li[3] print(li) # Output [1, 2, 3]2. 使用list方法pop...
-
auto
2019-08-11 11:27:12
python
2223°
20
基本原理在于Python标准库zipfile和扩展库unrar提供的解压缩方法extractall()可以指定密码,这样的话首先...
-
auto
2019-08-11 11:27:12
python
1770°
20
如果你想学Python,或者你刚开始学习Python,那么你可能会问:“我能用Python做什么?”这个问题不好回答,...
-
auto
2019-08-11 11:27:12
python
2438°
20
python遍历数组的两种方法 第一种,最常用的,通过for in遍历数组 [cpp] view plain copy colours = ...
-
auto
2019-08-11 11:27:12
python
1893°
20
这段时间,学习了一些相关的知识,因为对C++的多线程和网络编程不是很熟悉,先用python实现了...
-
auto
2019-08-11 11:27:12
python
1880°
20
前言最近在编写一个简单的...想想这种压力测试实际上没啥技术含量,就自己用Python来编写了小段测试代码。使
-
auto
2019-08-11 11:27:12
python
2485°
20
Python 3.6代码:# -*- coding: utf-8 -* def to_unicode(string): ret = '' for v in string: ret = ret ...
-
auto
2019-08-11 11:27:12
python
1800°
20
闭包1. 函数引用def test1(): print("--- in test1 func----") #调用函数 test1() #引用函数 ret = ...
-
auto
2019-08-11 11:26:28
python
1946°
20
在python程序中,如果想要确保程序中的某个条件一定为真才会继续执行的话,而可以使用assert来实现。 例如:>>> age = 10
>>> assert 0
>> assert age>20
Traceback (most recent call last):
-
auto
2019-08-11 11:26:28
python
1852°
20
Python 常用工具的安装
-
auto
2019-08-11 11:26:28
python
1865°
20
文件 1 内容如下
#some words
Sometimes in life,
You find a special friend;
Someone who changes your life just by being part of it.
Someone who makes you laugh until you can't stop;
Someone who m
-
auto
2019-08-11 11:26:28
python
1951°
20
print "Welcome to run"
print "Please input num"
print "1 stand for 矩形"
print "2 stand for 圆"
print "3 stand for 正方形"
s=int(input("Please inp
-
auto
2019-08-11 11:26:28
python
1662°
20
线程Threading用于提供线程相关的操作,线程是应用程序中工作的最小单元。更多方法:start 线程准备就绪,等待CPU调度setName 为线程设置名称getName 获取线程名称setDaemon 设置为后台线程或前
-
auto
2019-08-11 11:26:24
python
1697°
20
定制语法的string模板(template) 详解本文地址: ...使用"$"符号, 或 在字符串内, 使用"${}
-
auto
2019-08-11 11:26:24
python
2271°
20
-
auto
2019-08-11 11:26:24
python
1892°
20
# ----------------------- # __Author : tyran # __Date : 17-11-13 # ----------------------- # 异常...
-
auto
2019-08-11 11:26:24
python
1833°
20
/usr/bin/env python # -*- coding: utf-8 -*- import urllib2 import urllib import cookielib import ...
-
auto
2019-08-11 11:26:24
python
1872°
20
用法描述abs()函数返回给定参数的绝对值。参数可以是实数(整数、...1 >>> abs(13.2) 13.2 >>> abs(4+3j) 5.0