Python教程
Python是一种面向对象的解释型...
-
python 九九乘法表 python"># 9*9 for i in list(range(1,10)): for j in list(range(1,10)): if i >= j: print(i * j, '', end=''); else: print("\n"); ... 继续阅读python 九九乘法表
:2018-05-16
-
Python3.4图片转换素描 python"> from PIL import Image, ImageFilter, ImageOps img = Image.open('C:\\Users\\hengli\\Pictures\\lovewallpaper\\214926-106.jpg') def dodge(a, b, alpha): ... 继续阅读Python3.4图片转换素描
:2018-05-16
-
python使用sqlite3的简单代码 python">#Filename: DBcon.py import sqlite3 import time conn=sqlite3.connect(r'D:\Exercise\Python\DB\example.db') c=conn.cursor() c.execute("Create table if not exists stock... 继续阅读python使用sqlite3的简单代码
:2018-05-16
-
python线程同步 下面的python代码演示线程锁的用法和线程同步 python">#!/usr/bin/python import threading import time class myThread (threading.Thread): def __init__(self, threadID, name, counter): threading... 继续阅读python线程同步
:2018-05-16
-
python # 根据比例求角度 python">from math import * degrees(asin(0.5)) 标签:python ... 继续阅读python # 根据比例求角度
:2018-05-16
-
python CSDN免积分下载器(已打包) python">#-*-coding:utf-8-*- #python3.3.5 import urllib.parse,urllib.request,http.cookiejar,io,webbrowser import tkinter as tk from tkinter import * from tkinter.ttk import ... 继续阅读python CSDN免积分下载器(已打包)
:2018-05-16
-
Python获取系统信息的代码 python">import os,inspect,socket,time,pymysql num = 0 class Mysql: def __init__(self,host,user,password,db): self.cnn = pymysql.connect(host=host,user=user, passwd=pas... 继续阅读Python获取系统信息的代码
:2018-05-16
-
python 简单的python入门语法 python">#!/usr/bin/python3 # 开始学习python print("hello,world") # 条件语句 a, b = 3, 1 if a < b: print('a({}) is less than b({})'. format(a,b)) else: print('a({}) is gr... 继续阅读python 简单的python入门语法
:2018-05-17
-
python 中缀编程工具库pipe使用方法 python">from pipe import * print([1,2,3] | sum) print([1, 2, 3, 4, 5] | tee | add) 标签:python ... 继续阅读python 中缀编程工具库pipe使用方法
:2018-05-17
-
python 发送邮件 python">#!/usr/bin/env python #_*_encoding:utf-8_*_ import smtplib import string FROM = raw_input("请输入您的邮箱地址:") FROM_PASS = raw_input("请输入您的邮箱密码:") HOST = raw_input("请输入您的邮箱SMTP服务器地址(... 继续阅读python 发送邮件
:2018-05-17