Time of Update: 2018-12-05
資訊網格——下一代資訊服務平台
Time of Update: 2018-12-05
Menu Shortcuts菜單快速鍵The ability to specify menu shortcuts is one of the features in JDK 1.1 -- where menu choices can be selected via the keyboard instead of with the mouse.在jdk1.1中提供了菜單快速鍵的實現.快速鍵---就是利用鍵盤取代滑鼠選擇功能表項目.For example:一個例子://匯入需要的包import
Time of Update: 2018-12-05
IT巨頭搶灘格線運算第三次網際網路資訊技術浪潮將在2005年出現2020年將形成一個年產值20萬億美元的產業 “未來使用IT資源如同使用水電,即取即用”,這是IBM全球伺服器集團進階副總裁兼集團行政主管William M. Zeitler近日參加IBM在上海組織的“電子商務伺服器和全面儲存解決方案大學”論壇大會所說的第一句話。據市場人士分析,William M. Zeitler此行的真正目的就是為了這句話所描述的被喻為網際網路第三次浪潮的格線運算。而在此之前,IBM曾宣布了一項40億美元
Time of Update: 2018-12-05
導讀: json是很方便的web資料格式,特別是用在ajax的資料處理上。許多Python的架構都是使用 simplejson 包來進行處理。不過最近發現我有這樣的一個需求,比如我想把一個Python的資料結構轉為javascript資料結構,也就是將python的資料結構轉為json格式,然後用在模板中使用。如,我有一個模板,其中有javascript代碼: 上面的data我可以這樣處理: def index(): data =
Time of Update: 2018-12-05
'''Tkinter教程之Event篇(1)'''# 事件的使用方法'''1.測試滑鼠點擊(Click)事件'''# -*- coding: cp936 -*-# <Button-1>:滑鼠左擊事件# <Button-2>:滑鼠中擊事件# <Button-3>:滑鼠右擊事件# <Double-Button-1>:雙擊事件# <Triple-Button-1>:三擊事件from Tkinter import *root = Tk()def
Time of Update: 2018-12-05
http://blog.csdn.net/jcodeer 與 http://jcodeer.cublog.cn 為作者的兩個部落格,這兩個網站一個為“中國最大的IT技術社區”,另一個為“全球最大的Linux Unix中文網站”,各自有各自的風格與特點,都有自己的使用者群。作者在這兩個網站上建立同樣的部落格目的只有一個:推廣python,讓更多的使用者認識python,使用python。
Time of Update: 2018-12-05
'''Tkinter教程之OptionMenu篇'''#OptionMenu為可選菜單,與Combox功能類似。'''1.建立OptionMenu'''# -*- coding: cp936 -*-from Tkinter import *root = Tk()v = StringVar(root)v.set('Python')om = OptionMenu(root,v,'Python','PHP','CPP','C','Java','JavaScript','VBScript')om.pac
Time of Update: 2018-12-05
'''Tkinter教程之Event篇(3)''''''11.兩個事件同時綁定到一個控制項'''# -*- coding: cp936 -*-# bind:將事件與處理函數# 將兩個事件綁定為同一個組件# 為root綁定兩個事件from Tkinter import *root = Tk()# Key事件處理函數def printEvent(event): print '<Key>',event.keycode# Return事件處理函數def printReturn(even
Time of Update: 2018-12-05
'''Tkinter教程之Scale篇'''#Scale為輸出限定範圍的數字區間,可以為之指定最大值,最小值及步距值'''1.建立一個Scale'''from Tkinter import *root = Tk()Scale(root).pack()root.mainloop()#建立一個垂直Scale,最大值為100,最小值為0,步距值為1。這個參數設定也就是Scale的預設設定了。'''2.改變這三個參數,產生 一個水平Scale,最小值為-500,最大值為500,步距值為5'''# -*-
Time of Update: 2018-12-05
#Tkinter教程之Entry篇#Entry用來輸入單行文本'''1.第一個Entry程式'''from Tkinter import *root = Tk()Entry(root,text = 'input your text here').pack()root.mainloop()#上面的代碼目的是建立一個Entry對象,並在Entry上顯示'input your text here',運行此代碼,並沒有看到文本的顯示,由此可知與Lable和Button不同,Entry的text屬性不可以
Time of Update: 2018-12-05
webqq登入協議分析通過webqq介面,可以實現發送、接收qq訊息。1。首先調用:http://ptlogin2.qq.com/check?appid=1002101&uin=qq號碼&js_ver=10034&js_type=0&login_sig=g3W6wI0s*Da9mp6xHYdgm7iP-D7LBMId01umPiT0WTQQShsmCdWxgBD8vtI6Gltq&u1=http%3A%2F%2Fweb.qq.com%2Fmain.shtm
Time of Update: 2018-12-05
'''Tkinter教程之Menubutton篇''''''這是一個過時了的控制項,從Tk8.0開始將不再使用這個控制項,取而代之的是Menu,這裡介紹它是為了相容以前版本的Tk,能夠知道有這個東東就可以了''''''1.介紹一下Menubutton的常用 方法,可以看到與Menu的使用方法基本相同。'''# -*- coding: cp936 -*-from Tkinter import *root = Tk()mbLang = Menubutton(root,text = 'Language
Time of Update: 2018-12-05
web qq 擷取好友名單hash演算法在使用web qq的介面進行好友名單擷取的時候,需要post一個參數:hash在對其js檔案進行分析之後,發現計算hash的函數位於:http://0.web.qstatic.com/webqqpic/pubapps/0/50/eqq.all.js這個檔案中:P = function(b, i) {for (var a = [], s = 0; s < i.length; s++) a[s % 4] ^= i.charCodeAt(s);var j
Time of Update: 2018-12-05
'''Tkinter教程之Message篇'''#Message也是用來顯示文本的,用法與Label基本一樣'''1.建立一個簡單的Message'''from Tkinter import *root = Tk()Message(root,text = 'hello Message').pack()root.mainloop()#運行程式,可以看到Hello之後,Message顯示在它的下一行,這也是Message的一個特性。Label沒有。'''2.如果不讓它換行的話,指定足夠大的寬度'''
Time of Update: 2018-12-05
國際對象管理組織 (OMG) 宣布,模型驅動架構MDA的FastStart 計劃獲得了極大的進展。FastStart計劃的授權服務提供者(Qualified Service Providers ,QSP)名單迅速增長,又加入了19家新公司: 88 Solutions, ADA Software, Advanced Concepts Center, ATC Enterprises, Inc., Cephas Consulting, Cogenture Limited, Compuware,
Time of Update: 2018-12-05
#Tkinter教程之Checkbutton篇#Checkbutton又稱為多選按鈕,可以表示兩種狀態:On和Off,可以設定回呼函數,每當點擊此按鈕時回呼函數被調用'''1.一個簡單的Checkbutton例子'''#建立一個Checkbutton,顯示文本為"python"from Tkinter import *root = Tk()Checkbutton(root,text = 'python').pack()root.mainloop()'''2.設定Checkbutton的回呼函數'
Time of Update: 2018-12-05
'''Tkinter教程值PaneWindow'''#PaneWindow(面板)為一gm,用來管理子Widget'''1.向PanedWindow中添加Pane'''#使用add方法# -*- coding: cp936 -*-from Tkinter import *root = Tk()panes = PanedWindow(orient = VERTICAL)panes.pack(fill = BOTH,expand = 1)for w in [Label,Button,Checkbut
Time of Update: 2018-12-05
我們先來看看javax.swing.Popup的javadoc中的描述:Popups are used to display a Component to the user, typically on top of all the other Components in a particular containment hierarchy. Popups have a very small life cycle. Once you have obtained a Popup, and
Time of Update: 2018-12-05
'''Tkinter教程之Frame篇'''#Frame就是螢幕上的一塊矩形地區,多是用來作為容器(container)來布局表單。'''1.建立Frame'''# -*- coding: cp936 -*-from Tkinter import *root = Tk()#以不同的顏色區別各個framefor fm in ['red','blue','yellow','green','white','black']: #注意這個建立Frame的方法與其它建立控制項的方法不同,第一個參數不是
Time of Update: 2018-12-05
#Tkinter教程之Button篇(1)#Button功能觸發事件'''1.一個簡單的Button應用'''from Tkinter import *#定義Button的回呼函數def helloButton(): print 'hello button'root = Tk()#通過command屬性來指定Button的回呼函數Button(root,text = 'Hello Button',command = helloButton).pack()root.mainloop()'''