Python教程
Python是一种面向对象的解释型...
-
python 基本字符串压缩 python">class Zipper: def zipString(self, iniString): nlen = len(iniString) rest =[] i = 0 endflag = 0 while i < (nlen-1): ... 继续阅读python 基本字符串压缩
:2018-05-18
-
python 第一个猜数字游戏 python">import random num = random.randint(0,100) times = 0 print "Number(0,100) guess game" print "You will have 10 times to guess" print "Guess out of range will game over imme... 继续阅读python 第一个猜数字游戏
:2018-05-18
-
python programming python 之tkinter初学 python">#!/usr/bin/env python from Tkinter import * from tkMessageBox import showinfo def reply( ): showinfo(title='popup', message='Button pressed!') ... 继续阅读python programming python 之tkinter初学
:2018-05-18
-
Python代码运行助手 python">#!/usr/bin/env python3 # -*- coding: utf-8 -*- r''' learning.py A Python 3 tutorial from http://www.liaoxuefeng.com Usage: python3 learning.py ''' import sys def check_... 继续阅读Python代码运行助手
:2018-05-18
-
python获取本机网卡的mac地址 python获取本机网卡的mac地址python import uuid print ':'.join(['{:02x}'.format((uuid.getnode() >> i) & 0xff) for i in range(0,8*6,8)][::-1]) 标签:python ... 继续阅读python获取本机网卡的mac地址
:2018-05-18
-
python 分析并输出Python代码依赖的库 python">#!/usr/bin/env python # encoding: utf-8 # source: https://github.com/MrLYC/ycyc/blob/dev/tools/analysis_dependency.py import ast import importlib import inspect ... 继续阅读python 分析并输出Python代码依赖的库
:2018-05-18
-
python monkeyrunner 代码示例 python">'''from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice''' import sys from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice,MonkeyImage from co... 继续阅读python monkeyrunner 代码示例
:2018-05-18
-
python检测远程udp端口是否打开 python检测远程udp端口是否打开 python">import socket import threading import time import struct import Queue queue = Queue.Queue() def udp_sender(ip,port): try: ADDR = (ip... 继续阅读python检测远程udp端口是否打开
:2018-05-18
-
python Windows下Python获取磁盘空闲空间并写入日志 python">from ctypes import * import time import win32file run = True logfile = open('.\\log.out','w+');#open log file input = raw_input("Input a string for dis... 继续阅读python Windows下Python获取磁盘空闲空间并写入日志
:2018-05-18
-
python 对比list的处理速度 python">#网上代码 def open_httptxt(): #打开TXT文本写入数组 st=time.clock() try: passlist = [] list_passlist=[] xxx = file('http.txt', 'r') for xxx_... 继续阅读python 对比list的处理速度
:2018-05-19