E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Python3学习
python3学习
笔记--003--写一个自定义的包
代码布局:[laolang@localhostpackagetest]$tree . ├──mypackage │ ├──human.py │ ├──__init__.py │ └──student.py └──test.py 1directory,4files [laolang@localhostpackagetest]$mypackage/human.py#!/usr/bin/envp
小代码2016
·
2015-08-25 16:00
python3学习
笔记--002--写一个类
代码:[laolang@localhostclasstest]$cattest.py #!/usr/bin/envpython classperson: def__init__(self,name,age,sex): self.name=name self.age=age self.sex=sex defsayHello(self,msg='Hello'): print(msg) defpri
小代码2016
·
2015-08-25 15:00
python3学习
笔记--001--python HelloWorld
python默认使用UTF-8编码一个python3版本的HelloWorld代码如下:#!/usr/bin/envpython print('HelloWorld!')如果此python脚本文件名为:hello.py,则运行此脚本文件的方法有两种:1、pythonhello.py[laolang@localhostpython]$pythonhello.py HelloWorld! [laol
小代码2016
·
2015-08-24 21:00
Python3学习
笔记:使用代理访问url地址
#! /usr/bin/env python3 # -*- coding:utf-8 -*- 'python进行代理的curl数据提交' __author__ = 'ken' import os; import sys; curPath = os.path.abspath(os.path.dirname(__file__)); sys.path.append(curPath); impo
卖小女孩的小火柴
·
2015-08-01 18:00
Python3学习
笔记:使用Cookie访问url地址
#! /usr/bin/env python3 # -*- coding:utf-8 -*- '通过url地址获取代理IP地址,目前只能获取一页' __author__ = 'ken' import urllib.request; import urllib.parse; import re; import os; curPath = os.path.abspath(os.path.dir
卖小女孩的小火柴
·
2015-08-01 18:00
Python3学习
笔记:读写文件
import re; import os; curPath = os.path.abspath(os.path.dirname(__file__)); #写文件 ipList = [,]; proxyIpList = curPath + "/proxyIpList.txt"; with open(proxyIpList, ) f: ip ipList: f.write(
卖小女孩的小火柴
·
2015-08-01 18:00
Python3学习
笔记之基础教程二
fibo.py__author__='Administrator' deffib(n): a,b=0,1 whileb
earbao
·
2015-04-12 12:00
Python3学习
笔记之基础教程
参考网站:http://www.w3cschool.cc/python3/python3-tutorial.html__author__='Administrator' importsubprocess cmd="cmd.exe" begin=101 end=200 whilebegin2: human=22+(age-2)*5 print("humanyears:",human) else:
earbao
·
2015-04-11 22:00
python3学习
笔记--转换位串到utf-8字符串
http://www.wenzizone.com/2012/01/11/python3_convert_byte_array_to_string.html
thinking空
·
2014-10-29 00:00
python3学习
者的福音
偶然发现python3.3.5下的一个非常有用的目录:D:\Embedded\Python33\Lib\lib2to3这下面的类有详细的说明,关于python2到3所做的一些更改,特别是模块名等,这个非常有用,尤其是对那些参考python2的源码,现在却要用python3来作开发的朋友。
JoeBlackzqq
·
2014-08-31 23:00
深入
Python3学习
备忘记录
Python中有许多内置数据类型。以下是比较重要的一些:Booleans【布尔型】 或为 True[真] 或为 False[假]。Numbers【数值型】 可以是Integers【整数】(1 和 2)、Floats【浮点数】(1.1 和 1.2)、Fractions【分数】(1/2 和 2/3);甚至是 ComplexNumber【复数】。Strings【字符串型】 是Unicode字符序列,例如
貉子
·
2013-09-16 14:00
python3学习
笔记(二)
一.base64编码和解码任意的二进制字符串到文本字符串(主要用在HTTPEMAILURL等)官方帮助文档原文:ThismoduleprovidesdataencodinganddecodingasspecifiedinRFC3548.ThisstandarddefinestheBase16,Base32,andBase64algorithmsforencodinganddecodingarbit
jclass
·
2011-01-16 20:00
exception
python
calendar
Class
import
日历
python3学习
笔记(一)
一.打印并输出到文件>>>print("aa","bb","11","ddddd",sep='-',end='ok/t',file=open("c:/test.txt",'w'))>>>print("-"*40)#打印40个"-" 二.打印字典的值>>>d={"a":1,"b":2}>>>print('%(a)s...%(b)s'%d)1...2>>>s=('%(a)s...%(b)s'%d)>>
jclass
·
2011-01-16 16:00
上一页
3
4
5
6
7
8
9
10
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他