Life doesn't get easier or more forgiving; we get stronger and more resilient.
生活從未變得更加輕松或?qū)捜?,是我們?cè)谝稽c(diǎn)一點(diǎn)變強(qiáng)、變堅(jiān)韌。———— Steve Maraboli
學(xué)習(xí)python tkinter的時(shí)間順便寫了個(gè)簡(jiǎn)單的聊天窗口,可以實(shí)現(xiàn)下方輸入聊天內(nèi)容,點(diǎn)擊發(fā)送,可以增加到上方聊天記錄列表中?,F(xiàn)在只是“單機(jī)”版。 右側(cè)預(yù)留了空位可以放點(diǎn)兒其它東西。下一部是做成socket雙方互聊。 以下是代碼部分: from tkinter import * import datetime import time root = Tk() root.title('與xxx聊天中') #發(fā)送按鈕事件 def sendmessage(): #在聊天內(nèi)容上方加一行 顯示發(fā)...