-
auto
2019-08-31 09:40:20
python
1716°
20
importeasygui
easygui.msgbox("HELLOLMDTX!")#使用按钮得到输入
importeasygui
a=easygui.buttonbox("whatisyouneed:",choices=['a','b','
-
auto
2019-08-31 09:40:20
python
1684°
20
fromPILimportImageColor#pipinstallpillow#http://pillow-zh-cn.readthedocs.io/zh_CN/latest/installation.htmlImageColor.getcolor('red','RGB')(255,0,0)ImageColor.getcolor('red','RGBA')#A透明度,png图片(255,0,0,
-
auto
2019-08-31 09:40:20
python
1570°
20
我采用的是MySQLdb操作的MYSQL数据库。先来一个简单的例子吧:importMySQLdb
try:
conn=MySQLdb.connect(host='localhost',user='root',passwd='root',db='test',port=3306)
cur=con
-
auto
2019-08-31 09:40:20
python
1700°
20
python入门必备常识
-
auto
2019-08-30 09:29:51
python
2323°
20
kafka简介(摘自百度百科) 一、简介: 详见:...1、生产者: from kafka...
-
auto
2019-08-30 09:29:51
python
2254°
20
1. 点击打开链接 job伯乐在线 讲解的很好2. 菜鸟教程 3. 廖雪峰4. 量化课堂
-
auto
2019-08-30 09:29:51
python
2066°
20
# -*- coding: utf-8 -*- import urllib2 # http发送报文 def httpsend(url, bw): req = ...
-
auto
2019-08-30 09:29:51
python
1878°
20
导读:如果你想学Python,或者你刚开始学习Python,那么你可能会问:“我能用Python做什么?”这个问题不好...
-
auto
2019-08-30 09:29:51
python
2152°
20
Python struct模块 Python struct模块 用处struct模块中的函数格式化字符串 对齐方式格式符 code使用示例...
-
auto
2019-08-30 09:29:51
python
2196°
20
import time import decimal # text decimal_sum print("decimal:") start =time.time() sum = decimal....
-
auto
2019-08-30 09:29:51
python
2176°
20
对str类型数据进行split操作如下: >>> s = 'abc\ndef' >>> s.split('\n') ...
-
auto
2019-08-30 09:29:51
python
1979°
20
# _*_ encoding:utf-8 _*_ """ 最大堆 """ class MaxHeap(object): # def __init__(self): # self.data = ...
-
auto
2019-08-30 09:29:51
python
2105°
20
from websocket import create_connection ws = create_connection("ws://127.0.0.1:9002") ws.send(...
-
auto
2019-08-30 09:29:51
python
2139°
20
1.python的注释规范 python 分为 单行注释,多行注释以及特殊注释 ... 3、告诉LINUX/UNIX去找到python的翻译
-
auto
2019-08-30 08:40:35
python
1625°
20
可以用pip list 或者用help('modules')
-
auto
2019-08-30 08:40:35
python
2300°
20
以下程序 使用python实现 Voronoi图from PIL import Image import random import math def generate_...
-
auto
2019-08-30 08:40:35
python
1876°
20
针对数组的切片操作
-
auto
2019-08-30 08:40:35
python
1629°
20
>>> b = 3 - 5j >>> a (2+4j) >>> b (3-5j) >>> 对应的实部、虚部和共轭复数可以很容易的获取。就像下...
-
auto
2019-08-30 08:40:35
python
2089°
20
import os os.makedirs('./image/', exist_ok=True) IMAGE_URL = ...urllib_download(): from urllib.request...
-
auto
2019-08-30 08:40:35
python
1875°
20
短接串口的2、3脚,创建一个文本,如: [python] view plaincopyprint? import serial