Python3 網易有道詞典結合PyInstaller,tkinter制作一個簡單的中英文翻譯exe文件

`####這是自己的一個小想法,但是最后還是經過2天的瞎鼓搗實驗成果了。雖然界面很丑,但是我很喜歡它,因為有Dos黑窗口,少去了安裝步驟,更多的是少去了廣告,基于有道翻譯里面的api接口,所以我不怕翻譯的不準確啦

首先這里分三大步進行肢解:

一: 有道詞典的API接口爬取:
二:tkinter 各種控件的使用:
三:PyInstaller 打包成exe文件,直接在桌面上進行應用:

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

打開網址:
網址 http://fanyi.youdao.com/

中文轉英文的翻譯.png

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

英文轉中文的翻譯.png

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

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

找到js文件,然后點擊這個文件,跳轉到這個源文件中,然后全選所有的代碼,復制下來.png

貼上有道API代碼的獲取:

# @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('請輸入您需要翻譯的內容:')

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'])~~~

這里采用的是自動翻譯功能,沒有使用手動

2 tkinter 各種控件的使用

這里學的也不多,用的tkinter是python自帶的一個GUI編程,給出一些GUI資料。當時也是一路碰過來的,沒有進行深入的研究,

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

1、使用tkinter.Tk() 生成主窗口(root=tkinter.Tk());
root.title('標題名')      修改框體的名字,也可在創建時使用className參數來命名;
root.resizable(0,0)      框體大小可調性,分別表示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') #生成標簽
label.pack() #將標簽添加到主窗口
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() #進入消息循環(必需組件)

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

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

Toplevel         用來創建子窗口窗口組件。

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

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

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

relx:          組件相對于窗口的x坐標,應為0-1之間的小數;
rely:           組件相對于窗口的y坐標,應為0-1之間的小數;
width:          組件的寬度;
heitht:        組件的高度;
relwidth:       組件相對于窗口的寬度,0-1;
relheight:     組件相對于窗口的高度,0-1;

5、使用tkinter.Button時控制按鈕的參數:

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

6、文本框tkinter.Entry,tkinter.Text控制參數:

background(bg)    文本框背景色;
foreground(fg) 前景色;
selectbackground   選定文本背景色;
selectforeground   選定文本前景色;
borderwidth(bd)   文本框邊框寬度;
font  字體;
show    文本框顯示的字符,若為*,表示文本框為密碼框;
state    狀態;
width      文本框寬度
textvariable    可變文本,與StringVar等配合著用

7、標簽tkinter.Label組件控制參數:

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

8、單選框和復選框Radiobutton,Checkbutton控制參數:

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

9、組圖組件Canvas控制參數

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

對于按鈕組件、菜單組件等可以在創建組件時通過command參數指定其事件處理函數。方法為bind;或者用bind_class方法進行類綁定,bind_all方法將所有組件事件綁定到事件響應函數上。

10、菜單Menu

參數:
tearoff   分窗,0為在原窗,1為點擊分為兩個窗口
bg,fg    背景,前景
borderwidth   邊框寬度
font 字體
activebackgound 點擊時背景,同樣有activeforeground,activeborderwidth,disabledforeground
cursor
postcommand
selectcolor   選中時背景
takefocus
title
type
relief

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

11、事件關聯

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

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

窗口事件
Activate      當組件由不可用轉為可用時觸發;
Configure      當組件大小改變時觸發;
Deactivate       當組件由可用轉變為不可用時觸發;
Destroy      當組件被銷毀時觸發;
Expose      當組件從被遮擋狀態中暴露出來時觸發;
Unmap       當組件由顯示狀態變為隱藏狀態時觸發;
Map      當組件由隱藏狀態變為顯示狀態時觸發;
FocusIn       當組件獲得焦點時觸發;
FocusOut       當組件失去焦點時觸發;
Property      當窗體的屬性被刪除或改變時觸發;
Visibility     當組件變為可視狀態時觸發;

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

12、彈窗

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

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

補充:
config 重新配置
label.config(font='Arial -%d bold' % scale.get())
依次為字體,大小(大小可為字號大小),加粗
tkinter.StringVar 能自動刷新的字符串變量,可用set和get方法進行傳值和取值,類似的還有IntVar,DoubleVar...

然后我把有道api跟tkinter相互結合,做了一個很丑陋但是功能健在的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('輸入內容是:'+str(strcontent))
        print('輸出內容是: ----->: ', self.contents.get())

    def print_contents(self, event):
        print("原內容是: ---->:", 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('佛祖啟動成功....................................')
    print("     \t\t佛祖保佑                      永無BUG\n")
    print('###############################    蛇崽有道翻譯小詞典   ###################################\n')
    print('######   溫馨提示[1]:  使用時,Windos系統DOS窗口請不要關閉                                 \n')
    print('######   溫馨提示[2]:  若軟件輸出內容錯誤, 請不要驚慌,聯系方式:QQ  643435675      \n')
    print('######   溫馨提示[3]:  本軟件純屬學習使用,請勿作為商用                             \n')
    print('######   本軟件源碼請訪問:<p>http://www.lxweimin.com/c/8d71ae9d3718</p>            \n ')
    print('#########################################################################################\n')
    root = App()
    root.master.title("有道簡便翻譯器")
    root.mainloop()

if __name__ == '__main__':
    start_main()

瞬間感覺裝逼很low,額鵝鵝鵝,因為之前自己也是很小白,總覺著.exe文件很高大上,再加上能從黑窗口輸出內容,更牛掰了。哎,

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

說起來,這個確實有些坎坷

因為自己用的一直是pycharm,很多三方引用庫都是從pycharm中直接導入進去的,導致用pip的時候用的生疏,用的也是少了吧。

3 用PyInstaller生成.exe可執行文件

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

pip引入PyInstaller

這里我已經引入了PyInstaller庫了,所以,我們可以進行下一步,
調用命令:

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

最后會出現成功的字樣:

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生成可執行文件的路徑

貼一下我pip PyInstaller 并且通過PyInstaller 命令生成.exe可執行文件的Dos命令行內容:

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

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>

以上就是全部了。

看一下可執行文件的面貌吧:

這就是那個dos窗口加小應用窗口

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

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

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

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

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 228,923評論 6 535
  • 序言:濱河連續發生了三起死亡事件,死亡現場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發現死者居然都...
    沈念sama閱讀 98,740評論 3 420
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 176,856評論 0 380
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,175評論 1 315
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 71,931評論 6 410
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發上,一...
    開封第一講書人閱讀 55,321評論 1 324
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,383評論 3 443
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 42,533評論 0 289
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當地人在樹林里發現了一具尸體,經...
    沈念sama閱讀 49,082評論 1 335
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 40,891評論 3 356
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發現自己被綠了。 大學時的朋友給我發了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 43,067評論 1 371
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,618評論 5 362
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質發生泄漏。R本人自食惡果不足惜,卻給世界環境...
    茶點故事閱讀 44,319評論 3 347
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,732評論 0 27
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 35,987評論 1 289
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 51,794評論 3 394
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 48,076評論 2 375

推薦閱讀更多精彩內容

  • 雖然這是tk的教程,但是我個人還是比較推薦使用pyqt來寫窗口,實際上pyqt配合qtdesigner寫的窗口不僅...
    遺步看風景閱讀 40,155評論 3 39
  • 1、窗體 1、常用屬性 (1)Name屬性:用來獲取或設置窗體的名稱,在應用程序中可通過Name屬性來引用窗體。 ...
    Moment__格調閱讀 4,581評論 0 11
  • 發現 關注 消息 iOS 第三方庫、插件、知名博客總結 作者大灰狼的小綿羊哥哥關注 2017.06.26 09:4...
    肇東周閱讀 12,154評論 4 61
  • Ubuntu的發音 Ubuntu,源于非洲祖魯人和科薩人的語言,發作 oo-boon-too 的音。了解發音是有意...
    螢火蟲de夢閱讀 99,435評論 9 467
  • 一聽到同學或同事談論他們家孩子報了幾個班,我就覺得現在的孩子好可伶。我像他們那樣大的時候除了上課就是玩,是多么幸福...
    蘇曉的曉閱讀 547評論 0 1