-
auto
2019-08-11 11:27:12
python
1821°
20
这段时间,学习了一些相关的知识,因为对C++的多线程和网络编程不是很熟悉,先用python实现了...
-
auto
2019-08-11 11:27:12
python
1805°
20
前言最近在编写一个简单的...想想这种压力测试实际上没啥技术含量,就自己用Python来编写了小段测试代码。使
-
auto
2019-08-11 11:27:12
python
2410°
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
1731°
20
闭包1. 函数引用def test1(): print("--- in test1 func----") #调用函数 test1() #引用函数 ret = ...
-
auto
2019-08-11 11:26:28
python
1877°
20
在python程序中,如果想要确保程序中的某个条件一定为真才会继续执行的话,而可以使用assert来实现。 例如:>>> age = 10
>>> assert 0
>> assert age>20
Traceback (most recent call last):
-
auto
2019-08-11 11:26:28
python
1789°
20
Python 常用工具的安装
-
auto
2019-08-11 11:26:28
python
1801°
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
1882°
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
1596°
20
线程Threading用于提供线程相关的操作,线程是应用程序中工作的最小单元。更多方法:start 线程准备就绪,等待CPU调度setName 为线程设置名称getName 获取线程名称setDaemon 设置为后台线程或前
-
auto
2019-08-11 11:26:24
python
1627°
20
定制语法的string模板(template) 详解本文地址: ...使用"$"符号, 或 在字符串内, 使用"${}
-
auto
2019-08-11 11:26:24
python
2204°
20
-
auto
2019-08-11 11:26:24
python
1824°
20
# ----------------------- # __Author : tyran # __Date : 17-11-13 # ----------------------- # 异常...
-
auto
2019-08-11 11:26:24
python
1759°
20
/usr/bin/env python # -*- coding: utf-8 -*- import urllib2 import urllib import cookielib import ...
-
auto
2019-08-11 11:26:24
python
1829°
20
用法描述abs()函数返回给定参数的绝对值。参数可以是实数(整数、...1 >>> abs(13.2) 13.2 >>> abs(4+3j) 5.0
-
auto
2019-08-11 11:26:24
python
1855°
20
Python使用管道(pipe)使程序通信 今天在看Python的知识时,发现了Windows下使用“|”,即管道,由于基本上...
-
auto
2019-08-11 11:26:24
python
4581°
20
#-*- encoding: gb2312 -*- import email fp = open('xxxx.eml', "r") msg = email.message_from_file(fp)...
-
auto
2019-08-11 11:26:24
python
2217°
20
1. startfile方法(打开指定浏览器)...Files\internet explorer\iexplore.exe"')3.通过指定浏览器打开...
-
auto
2019-08-11 11:24:10
python
1688°
20
虽然“Python语言参考”描述了Python语言的确切语法和语义,但该库参考手册描述了使用Python分发的标准库。...
-
auto
2019-08-11 11:24:10
python
2004°
20
1,terminal : input: which python 2, terminal: input : python --->import sys ----> print sys....
-
auto
2019-08-11 11:24:10
python
2190°
20
方法一: 现在用 notepad++,在 UTF-8 格式下... 1 2 3 4 5 6 7 8 9 10 11 import os.path import xlrd,sys