原创 Pycharm this applicatation failed to start because it could not find or laod the qt plaform plugin

Pycharm 運行時候報如下錯誤網上找了各種解決方案,主要是講C:\Program Files\Python35\Lib\site-packages\PyQt5\plugins\platforms加到環境變量中,親自試過未能成功。嘗試將

原创 mysql通過ip地址進行訪問

1.登錄mysql:    mysql -u root -h 127.0.0.1 -p2.切換數據庫    use mysql3.授權grant all privileges on *.* to 'root'@'127.0.0.1'ide

原创 數據庫遠程鏈接不上

問題描述:服務器上自己通過127.0.0.1和自己的ip地址均可以訪問到,但是本地計算機卻連接不上。經過多方查找,原來是防火牆問題導致的。將端口1433加入入站規則中即可。

原创 C#自定義異常類

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serializatio

原创 C# 正則表達式獲取匹配的內容

string input={"大家好! 456 Email='[email protected]'>張三</User> 自我介紹。"} string partten = "大家好! (/d*)'Email='zhangsan@{(/d*)}

原创 xp密鑰

CCC64-69Q48-Y3KWW-8V9GV-TVKRM 

原创 sql語句分頁

select top 10 *,(select count(1) from table) as cnt from table where id not in ..   2.技術要點 在SQL Server中要實現SQL分頁,需要使用子查詢

原创 udpClient 服務端關閉,導致客戶端報錯的解決方法

uint IOC_IN = 0x80000000; uint IOC_VENDOR = 0x18000000; uint SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12; UdpClient.I

原创 C# combobx 綁定數據

1.DataTable綁定 用DataTable直接綁定,只需要設置DataSource、DisplayMember、ValueMember三個屬性即可。 this.cmbConsume.DataSource = dtSuperMark

原创 C# new和override區別

override 1. override是派生類用來重寫基類中方法的; 2. override不能重寫非虛方法和靜態方法; 3. override只能重寫用virtual、abstract、override修飾的方法; 4. 不能使用修飾

原创 python 冒泡排序

python 冒泡排序: def sort_myarr(): myarr=[9,2,10,24,1,5] lenth=len(myarr) for i in range(lenth): for j

原创 Qt lable 適應字體

1. self.lbl_msg.adjustSize()

原创 pyqt 在linedit右邊增加圖標

myAction=QtWidgets.QAction(self.txt_fullname) myAction.setIcon(QtGui.QIcon(":/satellite/image/satellite/china.png")) s

原创 pyqt 程序只能運行一次

pyqt 程序只能運行一次 from PyQt5.QtNetwork import QLocalSocket, QLocalServer if __name__ == '__main__': try: app

原创 pyqt 設置控件在最上層raise_()

self.lbl_tmp.raise_()