python
badagougou
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python关于PIL安装
参考网址1 http://www.itnose.net/detail/6190636.html 需要根据文章提示的网址http://www.lfd.uci.edu/~gohlke/pythonlibs/里下载Pillow‑4.1.1‑cp27‑cp27m‑win_amd64.whl 根据参考网址2的安装指令安装,(要在cmd切换到对应文件夹下) 安装完成后使用时注意:要用 ‘原创 2017-05-24 23:10:11 · 636 阅读 · 0 评论 -
Tkinter 组件基础练习
# -- coding: utf-8 - from Tkinter import * import tkMessageBox root=Tk() def funca(): print "a" def funcb(): print "b" def funcbutton(): print "this is buttton" #界面宽高和位置 root.geometry('450x450+原创 2018-01-21 13:22:48 · 452 阅读 · 0 评论 -
串口使用
#!/usr/bin/python3 import serial import time ser=serial.Serial('COM34',115200) print("this is wait read") time.sleep(2) while 1: #ser.write("AT".encode()+'\n'.encode()) n=ser.inWaiting()原创 2018-02-06 10:18:22 · 365 阅读 · 0 评论 -
window下 python 远程到ubuntu发命令
利用ssh: window cmd输入 pip install ssh脚本参考import sshmyclient=ssh.SSHClient()myclient.set_missing_host_key_policy(ssh.AutoAddPolicy())myclient.connect("192.168.198.200", port=22, username="xxx", passwor...原创 2018-07-07 16:03:10 · 715 阅读 · 0 评论 -
windows python命令 传输文件到ubuntu
带密码时,利用ssh win cmd: pip install paramikoimport paramikosf=paramiko.Transport("192.168.198.200",22)sf.connect(username = "xxx",password = "xxx")sftp1 = paramiko.SFTPClient.from_transport(sf)sftp1.put...原创 2018-07-07 16:51:01 · 806 阅读 · 0 评论
分享