Python3 網(wǎng)易有道詞典結(jié)合PyInstaller,tkinter制作一個(gè)簡單的中英文翻譯exe文件

`####這是自己的一個(gè)小想法,但是最后還是經(jīng)過2天的瞎鼓搗實(shí)驗(yàn)成果了。雖然界面很丑,但是我很喜歡它,因?yàn)橛蠨os黑窗口,少去了安裝步驟,更多的是少去了廣告,基于有道翻譯里面的api接口,所以我不怕翻譯的不準(zhǔn)確啦

首先這里分三大步進(jìn)行肢解:

一: 有道詞典的API接口爬?。?br> 二:tkinter 各種控件的使用:
三:PyInstaller 打包成exe文件,直接在桌面上進(jìn)行應(yīng)用:

首先:我們來獲取有道詞典的API接口;

打開網(wǎng)址:
網(wǎng)址 http://fanyi.youdao.com/

中文轉(zhuǎn)英文的翻譯.png

這里通過HttpFox 攔截請求中我們可以看到,我們在網(wǎng)址:http://fanyi.youdao.com/ 中輸入中國的時(shí)候,調(diào)用了post接口,這里的post 參數(shù)我把它特別的截出來了,其中key 為i 的value值 是一個(gè)亂碼的,這里后面會一會就有講到,里面post參數(shù)都有羅列。

英文轉(zhuǎn)中文的翻譯.png

相對于中文的翻譯,英文的就很好的看到了, 我們可以直接看到對于i的value值為china

通過查看網(wǎng)頁源代碼的方式查看有道翻譯的js文件,來查看salt和sign是怎么生成的
這里的sign值是進(jìn)行了md5加密來著

找到j(luò)s文件,然后點(diǎn)擊這個(gè)文件,跳轉(zhuǎn)到這個(gè)源文件中,然后全選所有的代碼,復(fù)制下來.png

貼上有道API代碼的獲?。?/p>

# @Time    : 2017/8/28 0:42
# @Author  : 蛇崽
# @Email   : 17193337679@163.com
# @File    : YouDaoTest.py

import urllib.request
import urllib.parse
import time
import random
import hashlib
import json

headers = {}
headers['Referer']='http://fanyi.youdao.com/'
headers['User-Agent']='Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.108 Safari/537.36 2345Explorer/8.7.0.16013'

timestamp = int(time.time() * 1000) + random.randint(0,10)

content = input('請輸入您需要翻譯的內(nèi)容:')

u = "fanyideskweb"
d = content
f = str(timestamp)
c = "rY0D^0'nM0}g5Mm1z%1G4"

sign = hashlib.md5((u + d + f + c).encode('utf-8')).hexdigest()

data = {
  'i': content,
  'from': 'AUTO',
  'to': 'AUTO',
  'smartresult': 'dict',
  'client': 'fanyideskweb',
  'salt': timestamp,
  'sign': sign,
  'doctype': 'json',
  'version': '2.1',
  'keyfrom': 'fanyi.web',
  'action': 'FY_BY_CLICK',
  'typoResult': 'true'
}

data = urllib.parse.urlencode(data).encode('utf-8')
request = urllib.request.Request(url='http://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule&sessionFrom=https://www.google.com/',method='POST',data=data,headers=headers)
response = urllib.request.urlopen(request)
result_str = response.read().decode('utf-8')
result_dict = json.loads(result_str)
print (result_dict["translateResult"][0][0]['tgt'])~~~

這里采用的是自動(dòng)翻譯功能,沒有使用手動(dòng)

2 tkinter 各種控件的使用

這里學(xué)的也不多,用的tkinter是python自帶的一個(gè)GUI編程,給出一些GUI資料。當(dāng)時(shí)也是一路碰過來的,沒有進(jìn)行深入的研究,

這里羅列一些tkinter模塊常用參數(shù)(python3)

1、使用tkinter.Tk() 生成主窗口(root=tkinter.Tk());
root.title('標(biāo)題名')      修改框體的名字,也可在創(chuàng)建時(shí)使用className參數(shù)來命名;
root.resizable(0,0)      框體大小可調(diào)性,分別表示x,y方向的可變性;
root.geometry('250x150')  指定主框體大小;
root.quit()         退出;
root.update_idletasks()
root.update()      刷新頁面;

2、初級樣例:

import tkinter
root=tkinter.Tk() #生成root主窗口
label=tkinter.Label(root,text='Hello,GUI') #生成標(biāo)簽
label.pack() #將標(biāo)簽添加到主窗口
button1=tkinter.Button(root,text='Button1') #生成button1
button1.pack(side=tkinter.LEFT) #將button1添加到root主窗口 button2=tkinter.Button(root,text='Button2')
button2.pack(side=tkinter.RIGHT)
root.mainloop() #進(jìn)入消息循環(huán)(必需組件)

3、tkinter中的15種核心組件:

Button   按鈕;
Canvas   繪圖形組件,可以在其中繪制圖形;
Checkbutton 復(fù)選框;
Entry    文本框(單行);
Text 文本框(多行);
Frame   框架,將幾個(gè)組件組成一組
Label    標(biāo)簽,可以顯示文字或圖片;
Listbox    列表框;
Menu    菜單;
Menubutton 它的功能完全可以使用Menu替代;
Message 與Label組件類似,但是可以根據(jù)自身大小將文本換行;
Radiobutton 單選框;
Scale    滑塊;允許通過滑塊來設(shè)置一數(shù)字值
Scrollbar 滾動(dòng)條;配合使用canvas, entry, listbox, and text窗口部件的標(biāo)準(zhǔn)滾動(dòng)條;

Toplevel         用來創(chuàng)建子窗口窗口組件。

(在Tkinter中窗口部件類沒有分級;所有的窗口部件類在樹中都是兄弟。)

4、組件的放置和排版(pack,grid,place)

pack組件設(shè)置位置屬性參數(shù):
after:     將組件置于其他組件之后;
before:    將組件置于其他組件之前;
anchor:    組件的對齊方式,頂對齊'n',底對齊's',左'w',右'e'
side:     組件在主窗口的位置,可以為'top','bottom','left','right'(使用時(shí)tkinter.TOP,tkinter.E);
fill 填充方式 (Y,垂直,X,水平)
expand 1可擴(kuò)展,0不可擴(kuò)展
grid組件使用行列的方法放置組件的位置,參數(shù)有:
column: 組件所在的列起始位置;
columnspam: 組件的列寬;
row:    組件所在的行起始位置;
rowspam:   組件的行寬;
place組件可以直接使用坐標(biāo)來放置組件,參數(shù)有:
anchor:    組件對齊方式;
x:     組件左上角的x坐標(biāo);
y:    組件右上角的y坐標(biāo);

relx:          組件相對于窗口的x坐標(biāo),應(yīng)為0-1之間的小數(shù);
rely:           組件相對于窗口的y坐標(biāo),應(yīng)為0-1之間的小數(shù);
width:          組件的寬度;
heitht:        組件的高度;
relwidth:       組件相對于窗口的寬度,0-1;
relheight:     組件相對于窗口的高度,0-1;

5、使用tkinter.Button時(shí)控制按鈕的參數(shù):

anchor:      指定按鈕上文本的位置;
background(bg)   指定按鈕的背景色;
bitmap:      指定按鈕上顯示的位圖;
borderwidth(bd)    指定按鈕邊框的寬度;
command:       指定按鈕消息的回調(diào)函數(shù);
cursor:     指定鼠標(biāo)移動(dòng)到按鈕上的指針樣式;
font:    指定按鈕上文本的字體;
foreground(fg)     指定按鈕的前景色;
height:     指定按鈕的高度;
image:      指定按鈕上顯示的圖片;
state:     指定按鈕的狀態(tài)(disabled);
text:     指定按鈕上顯示的文本;
width:      指定按鈕的寬度
padx      設(shè)置文本與按鈕邊框x的距離,還有pady;
activeforeground    按下時(shí)前景色
textvariable    可變文本,與StringVar等配合著用

6、文本框tkinter.Entry,tkinter.Text控制參數(shù):

background(bg)    文本框背景色;
foreground(fg) 前景色;
selectbackground   選定文本背景色;
selectforeground   選定文本前景色;
borderwidth(bd)   文本框邊框?qū)挾龋?br> font  字體;
show    文本框顯示的字符,若為*,表示文本框?yàn)槊艽a框;
state    狀態(tài);
width      文本框?qū)挾?br> textvariable    可變文本,與StringVar等配合著用

7、標(biāo)簽tkinter.Label組件控制參數(shù):

Anchor     標(biāo)簽中文本的位置;
background(bg)    背景色;
foreground(fg)   前景色;
borderwidth(bd)   邊框?qū)挾龋?br> width      標(biāo)簽寬度;
height     標(biāo)簽高度;
bitmap     標(biāo)簽中的位圖;
font    字體;
image      標(biāo)簽中的圖片;
justify     多行文本的對齊方式;
text        標(biāo)簽中的文本,可以使用'\n'表示換行
textvariable     顯示文本自動(dòng)更新,與StringVar等配合著用

8、單選框和復(fù)選框Radiobutton,Checkbutton控制參數(shù):

anchor   文本位置;
background(bg)   背景色;
foreground(fg) 前景色;
borderwidth 邊框?qū)挾龋?br> width    組件的寬度;
height    組件高度;
bitmap    組件中的位圖;
image    組件中的圖片;
font    字體;
justify    組件中多行文本的對齊方式;
text    指定組件的文本;
value    指定組件被選中中關(guān)聯(lián)變量的值;
variable   指定組件所關(guān)聯(lián)的變量;
indicatoron 特殊控制參數(shù),當(dāng)為0時(shí),組件會被繪制成按鈕形式;
textvariable 可變文本顯示,與StringVar等配合著用

9、組圖組件Canvas控制參數(shù)

background(bg)    背景色;
foreground(fg) 前景色;
borderwidth     組件邊框?qū)挾龋?br> width      組件寬度;
height    高度;
bitmap    位圖;
image      圖片;
繪圖的方法主要以下幾種:
create_arc 圓弧;
create_bitmap    繪制位圖,支持XBM;
create_image    繪制圖片,支持GIF(x,y,image,anchor);
create_line 繪制支線;
create_oval; 繪制橢圓;
create_polygon   繪制多邊形(坐標(biāo)依次羅列,不用加括號,還有參數(shù),fill,outline);
create_rectangle   繪制矩形((a,b,c,d),值為左上角和右下角的坐標(biāo));
create_text 繪制文字(字體參數(shù)font,);
create_window   繪制窗口;
delete   刪除繪制的圖形;
itemconfig 修改圖形屬性,第一個(gè)參數(shù)為圖形的ID,后邊為想修改的參數(shù);
move    移動(dòng)圖像(1,4,0),1為圖像對象,4為橫移4像素,0為縱移像素,然后用root.update()刷新即可看到圖像的移動(dòng),為了使多次移動(dòng)變得可視,最好加上time.sleep()函數(shù);
只要用create_方法畫了一個(gè)圖形,就會自動(dòng)返回一個(gè)ID,創(chuàng)建一個(gè)圖形時(shí)將它賦值給一個(gè)變量,需要ID時(shí)就可以使用這個(gè)變量名。
coords(ID) 返回對象的位置的兩個(gè)坐標(biāo)(4個(gè)數(shù)字元組);

對于按鈕組件、菜單組件等可以在創(chuàng)建組件時(shí)通過command參數(shù)指定其事件處理函數(shù)。方法為bind;或者用bind_class方法進(jìn)行類綁定,bind_all方法將所有組件事件綁定到事件響應(yīng)函數(shù)上。

10、菜單Menu

參數(shù):
tearoff   分窗,0為在原窗,1為點(diǎn)擊分為兩個(gè)窗口
bg,fg    背景,前景
borderwidth   邊框?qū)挾?br> font 字體
activebackgound 點(diǎn)擊時(shí)背景,同樣有activeforeground,activeborderwidth,disabledforeground
cursor
postcommand
selectcolor   選中時(shí)背景
takefocus
title
type
relief

方法:
menu.add_cascade 添加子選項(xiàng)
menu.add_command 添加命令(label參數(shù)為顯示內(nèi)容)
menu.add_separator 添加分隔線
menu.add_checkbutton 添加確認(rèn)按鈕
delete 刪除

11、事件關(guān)聯(lián)

bind(sequence,func,add)——
bind_class(className,sequence,func,add)
bind_all(sequence,func,add)
事件參數(shù):  
sequence         所綁定的事件;
func        所綁定的事件處理函數(shù);
add        可選參數(shù),為空字符或‘+’;
className          所綁定的類;

鼠標(biāo)鍵盤事件
<Button-1>    鼠標(biāo)左鍵按下,2表示中鍵,3表示右鍵;
<ButtonPress-1>   同上;
<ButtonRelease-1>    鼠標(biāo)左鍵釋放;
<B1-Motion>    按住鼠標(biāo)左鍵移動(dòng);
<Double-Button-1>    雙擊左鍵;
<Enter>    鼠標(biāo)指針進(jìn)入某一組件區(qū)域;
<Leave>    鼠標(biāo)指針離開某一組件區(qū)域;
<MouseWheel>      滾動(dòng)滾輪;
<KeyPress-A>       按下A鍵,A可用其他鍵替代;
<Alt-KeyPress-A>    同時(shí)按下alt和A;alt可用ctrl和shift替代;
<Double-KeyPress-A>   快速按兩下A;
<Lock-KeyPress-A>    大寫狀態(tài)下按A;

窗口事件
Activate      當(dāng)組件由不可用轉(zhuǎn)為可用時(shí)觸發(fā);
Configure      當(dāng)組件大小改變時(shí)觸發(fā);
Deactivate       當(dāng)組件由可用轉(zhuǎn)變?yōu)椴豢捎脮r(shí)觸發(fā);
Destroy      當(dāng)組件被銷毀時(shí)觸發(fā);
Expose      當(dāng)組件從被遮擋狀態(tài)中暴露出來時(shí)觸發(fā);
Unmap       當(dāng)組件由顯示狀態(tài)變?yōu)殡[藏狀態(tài)時(shí)觸發(fā);
Map      當(dāng)組件由隱藏狀態(tài)變?yōu)轱@示狀態(tài)時(shí)觸發(fā);
FocusIn       當(dāng)組件獲得焦點(diǎn)時(shí)觸發(fā);
FocusOut       當(dāng)組件失去焦點(diǎn)時(shí)觸發(fā);
Property      當(dāng)窗體的屬性被刪除或改變時(shí)觸發(fā);
Visibility     當(dāng)組件變?yōu)榭梢暊顟B(tài)時(shí)觸發(fā);

響應(yīng)事件
event對象(def function(event)):
char        按鍵字符,僅對鍵盤事件有效;
keycode         按鍵名,僅對鍵盤事件有效;
keysym         按鍵編碼,僅對鍵盤事件有效;
num       鼠標(biāo)按鍵,僅對鼠標(biāo)事件有效;
type      所觸發(fā)的事件類型;
widget      引起事件的組件;
width,heigh       組件改變后的大小,僅Configure有效;
x,y         鼠標(biāo)當(dāng)前位置,相對于窗口;
x_root,y_root       鼠標(biāo)當(dāng)前位置,相對于整個(gè)屏幕

12、彈窗

messagebox._show函數(shù)的控制參數(shù):
default 指定消息框按鈕;
icon 指定消息框圖標(biāo);
message    指定消息框所顯示的消息;
parent 指定消息框的父組件;title 標(biāo)題;
type 類型;
simpledialog模塊參數(shù):
title 指定對話框的標(biāo)題;
prompt  顯示的文字;
initialvalue 指定輸入框的初始值;
filedialog    模塊參數(shù):
filetype    指定文件類型;
initialdir    指定默認(rèn)目錄;
initialfile    指定默認(rèn)文件;
title     指定對話框標(biāo)題
colorchooser模塊參數(shù):
initialcolor   指定初始化顏色;
title  指定對話框標(biāo)題;

13、字體(font)
一般格式:
('Times -10 bold')
('Times',10,'bold','italic') 依次表示字體、字號、加粗、傾斜

補(bǔ)充:
config 重新配置
label.config(font='Arial -%d bold' % scale.get())
依次為字體,大?。ù笮】蔀樽痔柎笮。?,加粗
tkinter.StringVar 能自動(dòng)刷新的字符串變量,可用set和get方法進(jìn)行傳值和取值,類似的還有IntVar,DoubleVar...

然后我把有道api跟tkinter相互結(jié)合,做了一個(gè)很丑陋但是功能健在的GUI有道。(尷尬.big.png)

貼上組合后最后的代碼:

# -*- coding: utf-8 -*-
# @Time    : 2017/8/29 2:06
# @Author  : 蛇崽
# @Email   : 17193337679@163.com
# @File    : SnakeSon_YouDao.py
from tkinter import *
import urllib.request
import urllib.parse
import time
import random
import hashlib
import json
headers = {}
headers['Referer']='http://fanyi.youdao.com/'
headers['User-Agent']='Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.108 Safari/537.36 2345Explorer/8.7.0.16013'


flag = True
class App(Frame):
    def __init__(self, master=None):
        Frame.__init__(self, master)
        self.pack()
        self.entrythingy = Entry(self)
        self.entrythingy.pack()

        self.button = Button(self, text="翻  譯",width =40,height=2,
                             command=self.upper)
        self.button.pack(side='bottom',padx=5,pady=5)


        self.contents = StringVar()
        self.contents.set("中英文互換")
        self.entrythingy.config(textvariable=self.contents)

        self.entrythingy.bind('<Key-Return>', self.print_contents)


    def upper(self):
        strcontent = self.contents.get()
        timestamp = int(time.time() * 1000) + random.randint(0, 10)
        d = strcontent
        u = "fanyideskweb"
        f = str(timestamp)
        c = "rY0D^0'nM0}g5Mm1z%1G4"
        sign = hashlib.md5((u + d + f + c).encode('utf-8')).hexdigest()
        data = {
            'i': d,
            'from': 'AUTO',
            'to': 'AUTO',
            'smartresult': 'dict',
            'client': 'fanyideskweb',
            'salt': timestamp,
            'sign': sign,
            'doctype': 'json',
            'version': '2.1',
            'keyfrom': 'fanyi.web',
            'action': 'FY_BY_CLICK',
            'typoResult': 'true'
        }
        data = urllib.parse.urlencode(data).encode('utf-8')
        request = urllib.request.Request(
            url='http://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule&sessionFrom=https://www.google.com/',
            method='POST', data=data, headers=headers)

        response = urllib.request.urlopen(request)
        result_str = response.read().decode('utf-8')
        result_dict = json.loads(result_str)
        finaleData = result_dict["translateResult"][0][0]['tgt']

        self.contents.set(finaleData)
        print('輸入內(nèi)容是:'+str(strcontent))
        print('輸出內(nèi)容是: ----->: ', self.contents.get())

    def print_contents(self, event):
        print("原內(nèi)容是: ---->:", self.contents.get())

def about():
    print('hahfd')

def start_main():
    print('佛祖初始化.....................................')
    print("                   _ooOoo_\n")
    print("                  o8888888o\n")
    print("                  88\" . \"88\n")
    print("                  (| -_- |)\n")
    print("                  O\\  =  /O\n")
    print("               ____/`---'\\____\n")
    print("             .'  \\\\|     |//  `.\n")
    print("            /  \\\\|||  :  |||//  \\ \n")
    print("           /  _||||| -:- |||||-  \\ \n")
    print("           |   | \\\\\\  -  /// |   |\n")
    print("           | \\_|  ''\\---/''  |   |\n")
    print("           \\  .-\\__  `-`  ___/-. /\n")
    print("         ___`. .'  /--.--\\  `. . __\n")
    print("      .\"\" '<  `.___\\_<|>_/___.'  >'\"\".\n")
    print("     | | :  `- \\`.;`\\ _ /`;.`/ - ` : | |\n")
    print("     \\  \\ `-.   \\_ __\\ /__ _/   .-` /  /\n")
    print("======`-.____`-.___\\_____/___.-`____.-'======\n")
    print("                   `=---='\n")
    print("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n")
    print('佛祖啟動(dòng)成功....................................')
    print("     \t\t佛祖保佑                      永無BUG\n")
    print('###############################    蛇崽有道翻譯小詞典   ###################################\n')
    print('######   溫馨提示[1]:  使用時(shí),Windos系統(tǒng)DOS窗口請不要關(guān)閉                                 \n')
    print('######   溫馨提示[2]:  若軟件輸出內(nèi)容錯(cuò)誤, 請不要驚慌,聯(lián)系方式:QQ  643435675      \n')
    print('######   溫馨提示[3]:  本軟件純屬學(xué)習(xí)使用,請勿作為商用                             \n')
    print('######   本軟件源碼請?jiān)L問:<p>http://www.itdecent.cn/c/8d71ae9d3718</p>            \n ')
    print('#########################################################################################\n')
    root = App()
    root.master.title("有道簡便翻譯器")
    root.mainloop()

if __name__ == '__main__':
    start_main()

瞬間感覺裝逼很low,額鵝鵝鵝,因?yàn)橹白约阂彩呛苄“?,總覺著.exe文件很高大上,再加上能從黑窗口輸出內(nèi)容,更牛掰了。哎,

這就是怎么把有道API結(jié)合thinker進(jìn)行GUI查單詞,然后還不剩下最后一步:
打包成.exe文件

說起來,這個(gè)確實(shí)有些坎坷

因?yàn)樽约河玫囊恢笔莗ycharm,很多三方引用庫都是從pycharm中直接導(dǎo)入進(jìn)去的,導(dǎo)致用pip的時(shí)候用的生疏,用的也是少了吧。

3 用PyInstaller生成.exe可執(zhí)行文件

首先把pip配置好,這里我是直接配置到環(huán)境變量里面去了的,所以引入PyInstaller的話,可以直接使用命令:pip install PyInstaller

pip引入PyInstaller

這里我已經(jīng)引入了PyInstaller庫了,所以,我們可以進(jìn)行下一步,
調(diào)用命令:

pyinstaller -F C:\Users\Administrator\PycharmProjects\PyStudy\YouDao\PyGUI3.py

最后會出現(xiàn)成功的字樣:

55605 INFO: checking EXE
55627 INFO: Building EXE because out00-EXE.toc is non existent
55644 INFO: Building EXE from out00-EXE.toc
55664 INFO: Appending archive to EXE C:\Users\Administrator\dist\PyGUI3.exe
55694 INFO: Building EXE from out00-EXE.toc completed successfully.
PyInstaller生成可執(zhí)行文件的路徑

貼一下我pip PyInstaller 并且通過PyInstaller 命令生成.exe可執(zhí)行文件的Dos命令行內(nèi)容:

Microsoft Windows [版本 10.0.14393]
(c) 2016 Microsoft Corporation。保留所有權(quán)利。

C:\Users\Administrator>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> python setup.py install
  File "<stdin>", line 1
    python setup.py install
               ^
SyntaxError: invalid syntax
>>> pip openssl
  File "<stdin>", line 1
    pip openssl
              ^
SyntaxError: invalid syntax
>>> python setup.py openssl
  File "<stdin>", line 1
    python setup.py openssl
               ^
SyntaxError: invalid syntax
>>> exit()

C:\Users\Administrator>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 1+1
2
>>> exit()

C:\Users\Administrator>pip

Usage:
  pip <command> [options]

Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  help                        Show help for commands.

General Options:
  -h, --help                  Show help.
  --isolated                  Run pip in an isolated mode, ignoring
                              environment variables and user configuration.
  -v, --verbose               Give more output. Option is additive, and can be
                              used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output. Option is additive, and can be
                              used up to 3 times (corresponding to WARNING,
                              ERROR, and CRITICAL logging levels).
  --log <path>                Path to a verbose appending log.
  --proxy <proxy>             Specify a proxy in the form
                              [user:passwd@]proxy.server:port.
  --retries <retries>         Maximum number of retries each connection should
                              attempt (default 5 times).
  --timeout <sec>             Set the socket timeout (default 15 seconds).
  --exists-action <action>    Default action when a path already exists:
                              (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
  --trusted-host <hostname>   Mark this host as trusted, even though it does
                              not have valid or any HTTPS.
  --cert <path>               Path to alternate CA bundle.
  --client-cert <path>        Path to SSL client certificate, a single file
                              containing the private key and the certificate
                              in PEM format.
  --cache-dir <dir>           Store the cache data in <dir>.
  --no-cache-dir              Disable the cache.
  --disable-pip-version-check
                              Don't periodically check PyPI to determine
                              whether a new version of pip is available for
                              download. Implied with --no-index.

C:\Users\Administrator>pip install PyInstaller
Collecting PyInstaller
Requirement already satisfied: setuptools in c:\users\administrator\appdata\local\programs\python\python35\lib\site-packages (from PyInstaller)
Collecting future (from PyInstaller)
Installing collected packages: future, PyInstaller
Successfully installed PyInstaller-3.2.1 future-0.16.0

C:\Users\Administrator>pyinstaller
usage: pyinstaller [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME]
                   [--add-data <SRC;DEST or SRC:DEST>]
                   [--add-binary <SRC;DEST or SRC:DEST>] [-p DIR]
                   [--hidden-import MODULENAME]
                   [--additional-hooks-dir HOOKSPATH]
                   [--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES]
                   [--key KEY] [-d] [-s] [--noupx] [-c] [-w]
                   [-i <FILE.ico or FILE.exe,ID or FILE.icns>]
                   [--version-file FILE] [-m <FILE or XML>] [-r RESOURCE]
                   [--uac-admin] [--uac-uiaccess] [--win-private-assemblies]
                   [--win-no-prefer-redirects]
                   [--osx-bundle-identifier BUNDLE_IDENTIFIER]
                   [--distpath DIR] [--workpath WORKPATH] [-y]
                   [--upx-dir UPX_DIR] [-a] [--clean] [--log-level LEVEL]
                   [--upx UPX]
                   scriptname [scriptname ...]
pyinstaller: error: the following arguments are required: scriptname

C:\Users\Administrator>pyinstaller -F C:\Users\Administrator\PycharmProjects\PyStudy\YouDao\PyGUI3.py
612 INFO: PyInstaller: 3.2.1
612 INFO: Python: 3.5.2
614 INFO: Platform: Windows-10-10.0.14393-SP0
635 INFO: wrote C:\Users\Administrator\PyGUI3.spec
689 INFO: UPX is not available.
722 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Administrator\\PycharmProjects\\PyStudy\\YouDao',
 'C:\\Users\\Administrator']
748 INFO: checking Analysis
803 INFO: Building Analysis because out00-Analysis.toc is non existent
815 INFO: Initializing module dependency graph...
860 INFO: Initializing module graph hooks...
871 INFO: Analyzing base_library.zip ...
7739 INFO: running Analysis out00-Analysis.toc
8422 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python.exe
8842 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python.exe
9266 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python.exe
9684 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python.exe
10107 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python.exe
10588 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
11174 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
11636 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
12100 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
12551 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
12978 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
13414 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
13848 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
14329 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
14872 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
15428 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
15868 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\python35.dll
16315 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\VCRUNTIME140.dll
16754 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\VCRUNTIME140.dll
17188 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\VCRUNTIME140.dll
17623 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\VCRUNTIME140.dll
18093 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\VCRUNTIME140.dll
18099 INFO: Caching module hooks...
18128 INFO: Analyzing C:\Users\Administrator\PycharmProjects\PyStudy\YouDao\PyGUI3.py
18693 INFO: Loading module hooks...
18694 INFO: Loading module hook "hook-encodings.py"...
19107 INFO: Loading module hook "hook-_tkinter.py"...
19552 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_tkinter.pyd
19983 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_tkinter.pyd
20416 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_tkinter.pyd
21168 INFO: checking Tree
21169 INFO: Building Tree because out00-Tree.toc is non existent
21186 INFO: Building Tree out00-Tree.toc
21316 INFO: checking Tree
21316 INFO: Building Tree because out01-Tree.toc is non existent
21333 INFO: Building Tree out01-Tree.toc
21388 INFO: Loading module hook "hook-xml.py"...
21803 INFO: Loading module hook "hook-pydoc.py"...
21872 INFO: Looking for ctypes DLLs
21893 INFO: Analyzing run-time hooks ...
21905 INFO: Including run-time hook 'pyi_rth__tkinter.py'
21928 INFO: Looking for dynamic libraries
22454 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ssl.pyd
22923 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ssl.pyd
23353 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ssl.pyd
23789 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ssl.pyd
24333 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ssl.pyd
24850 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ssl.pyd
25424 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ssl.pyd
25855 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ssl.pyd
26269 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ssl.pyd
26698 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ssl.pyd
27216 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\unicodedata.pyd
27650 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\unicodedata.pyd
28096 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\unicodedata.pyd
28541 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ctypes.pyd
28962 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ctypes.pyd
29382 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_ctypes.pyd
29825 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
30274 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
30736 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
31159 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
31605 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
32061 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
32512 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
32952 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
33402 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
33841 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
34259 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
34774 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
35273 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
35709 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
36162 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\select.pyd
36623 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_bz2.pyd
37043 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_bz2.pyd
37458 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_bz2.pyd
37870 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_bz2.pyd
38293 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_bz2.pyd
38747 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_lzma.pyd
39174 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_lzma.pyd
39598 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_socket.pyd
40058 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_socket.pyd
40479 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_tkinter.pyd
40894 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_tkinter.pyd
41312 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\_tkinter.pyd
41777 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tcl86t.dll
42225 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tcl86t.dll
42667 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tcl86t.dll
43115 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tcl86t.dll
43541 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tcl86t.dll
43953 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tcl86t.dll
44368 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tcl86t.dll
44896 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tcl86t.dll
45423 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tcl86t.dll
45891 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tk86t.dll
46338 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tk86t.dll
46757 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tk86t.dll
47181 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tk86t.dll
47592 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tk86t.dll
48001 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tk86t.dll
48429 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tk86t.dll
48860 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\administrator\appdata\local\programs\python\python35\DLLs\tk86t.dll
48892 INFO: Looking for eggs
48892 INFO: Using Python library c:\users\administrator\appdata\local\programs\python\python35\python35.dll
48909 INFO: Found binding redirects:
[]
48947 INFO: Warnings written to C:\Users\Administrator\build\PyGUI3\warnPyGUI3.txt
49113 INFO: checking PYZ
49113 INFO: Building PYZ because out00-PYZ.toc is non existent
49131 INFO: Building PYZ (ZlibArchive) C:\Users\Administrator\build\PyGUI3\out00-PYZ.pyz
50238 INFO: Building PYZ (ZlibArchive) C:\Users\Administrator\build\PyGUI3\out00-PYZ.pyz completed successfully.
50265 INFO: checking PKG
50266 INFO: Building PKG because out00-PKG.toc is non existent
50281 INFO: Building PKG (CArchive) out00-PKG.pkg
50351 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\python35.dll
50353 INFO: Updating resource type 24 name 2 language 1033
50423 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\_ssl.pyd
50424 INFO: Updating resource type 24 name 2 language 1033
50468 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\unicodedata.pyd
50469 INFO: Updating resource type 24 name 2 language 1033
50506 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\_ctypes.pyd
50507 INFO: Updating resource type 24 name 2 language 1033
50542 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\pyexpat.pyd
50545 INFO: Updating resource type 24 name 2 language 1033
50588 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\_hashlib.pyd
50589 INFO: Updating resource type 24 name 2 language 1033
50623 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\select.pyd
50624 INFO: Updating resource type 24 name 2 language 1033
50653 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\_bz2.pyd
50659 INFO: Updating resource type 24 name 2 language 1033
50693 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\_lzma.pyd
50696 INFO: Updating resource type 24 name 2 language 1033
50729 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\_socket.pyd
50736 INFO: Updating resource type 24 name 2 language 1033
50765 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\_tkinter.pyd
50775 INFO: Updating resource type 24 name 2 language 1033
50852 INFO: Updating manifest in C:\Users\Administrator\AppData\Roaming\pyinstaller\bincache00_py35_64bit\tk86t.dll
50854 INFO: Updating resource type 24 name 1 language 1033
55508 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
55605 INFO: Bootloader c:\users\administrator\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
55605 INFO: checking EXE
55627 INFO: Building EXE because out00-EXE.toc is non existent
55644 INFO: Building EXE from out00-EXE.toc
55664 INFO: Appending archive to EXE C:\Users\Administrator\dist\PyGUI3.exe
55694 INFO: Building EXE from out00-EXE.toc completed successfully.

C:\Users\Administrator>

以上就是全部了。

看一下可執(zhí)行文件的面貌吧:

這就是那個(gè)dos窗口加小應(yīng)用窗口

dos窗口是特意放大的,?(? ???ω??? ?)?,

是不是小的GUI窗口查單詞很方便,直接調(diào)用的有道API,無毒,無廣告,源碼還開放,哈哈哈(路人懵逼五分鐘.jpg)

小程序已上傳Github: https://github.com/643435675/PyStudy

參考:
有道詞典API:
http://www.itdecent.cn/p/5001c75a23c4
PyInstaller生成EXE文件:
http://www.cnblogs.com/aland-1415/p/7112977.html
tkinter簡單GUI基礎(chǔ):
http://www.cnblogs.com/aland-1415/p/6849193.html

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 雖然這是tk的教程,但是我個(gè)人還是比較推薦使用pyqt來寫窗口,實(shí)際上pyqt配合qtdesigner寫的窗口不僅...
    遺步看風(fēng)景閱讀 40,555評論 3 39
  • 1、窗體 1、常用屬性 (1)Name屬性:用來獲取或設(shè)置窗體的名稱,在應(yīng)用程序中可通過Name屬性來引用窗體。 ...
    Moment__格調(diào)閱讀 4,747評論 0 11
  • 發(fā)現(xiàn) 關(guān)注 消息 iOS 第三方庫、插件、知名博客總結(jié) 作者大灰狼的小綿羊哥哥關(guān)注 2017.06.26 09:4...
    肇東周閱讀 15,022評論 4 61
  • Ubuntu的發(fā)音 Ubuntu,源于非洲祖魯人和科薩人的語言,發(fā)作 oo-boon-too 的音。了解發(fā)音是有意...
    螢火蟲de夢閱讀 100,584評論 9 468
  • 一聽到同學(xué)或同事談?wù)撍麄兗液⒆訄?bào)了幾個(gè)班,我就覺得現(xiàn)在的孩子好可伶。我像他們那樣大的時(shí)候除了上課就是玩,是多么幸福...
    蘇曉的曉閱讀 616評論 0 1

友情鏈接更多精彩內(nèi)容