
Python
MyFreeIT
Working in IT more than 19 years ,目前供職於全球最大的保險公司,管理技術和產品。曾經主導多個國家級項目,用戶覆蓋全國,至今仍在健康運行。金融軟件產品developed more than 10 years ,應用在證券、银行、保险、基金、期貨等。設計和研發的產品簡單易用,性能穩定,給客戶帶來全新的體驗,協助持續穩定的盈利。從事IT管理工作達10年之久,帶領多個部門和團隊,高效協調和有效溝通,發揮團隊的力量。創業多年,主導研發CRM BOOK系列產品,風控预警、风险對沖軟體在業内位列前茅。不斷地鍛煉邏輯思維和抽象思維能力,從而形成快速解決問題的能力。
展开
-
python crawler web page
一個完整python抓取網頁的case,在現有Excel的基礎上追加內容。原创 2024-08-09 18:57:59 · 333 阅读 · 0 评论 -
Python Window
目录Python 初始化窗口調用初始化方法手動初始化Python 初始化窗口調用初始化方法 def __int__(self): super().__init__() self.initUI()手動初始化 def __init__(self): QMainWindow.__init__(self) self.main_ui = Ui_MainWindow() self.main_原创 2021-07-21 00:13:00 · 203 阅读 · 1 评论 -
Python—TypeError: argument has unexpected type ‘NoneType‘
self.clearButton.clicked.connect(host.clear(self))self.clearButton.clicked.connect(host.clear(self))TypeError: argument 1 has unexpected type 'NoneType'修改為:self.clearButton.clicked.connect(lambda:host.clear(self))了解Lambda的用法,請參考从零开始学python | 什.原创 2021-07-20 18:12:43 · 1337 阅读 · 0 评论 -
Python與安全的若干問題
Todo1.Python exe 修改系統文件原创 2021-07-07 10:28:57 · 71 阅读 · 0 评论 -
Python-cp950‘ codec can‘t encode
Error:'cp950' codec can't encode byte 0x8c in position 403:illegal multibyte sequence解決方案:encoding='utf-8'hosts_para_file = open(os.path.join(tmdPath,'hosts'), 'r+', encoding='utf-8')原创 2021-07-07 10:22:23 · 2332 阅读 · 0 评论 -
Python GUI基础
Qt DesignerPyQt5安裝pyqt5pip install pyqt5安裝Designerpip install pyqt5-tools原创 2021-07-02 11:21:57 · 88 阅读 · 0 评论 -
PyInstalle 打包
下載pyinstaller-4.3 並解壓在對應的目錄下執行installpip3 install PyInstaller升級pipYou should consider upgrading via the 'd:\python\python.exe -m pip install --upgrade pip' command.python.exe -m pip install --upgrade pipInstalling collected packages: pip ...原创 2021-06-29 23:44:17 · 212 阅读 · 0 评论 -
Python-illegal multibyte sequence
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa2 in position 1233: illegal multibyte sequence非法的多字节序列encoding='utf-8'原创 2021-06-27 22:02:41 · 1068 阅读 · 0 评论 -
Python變量類型轉換
这里是引用數值型態(Numeric type) - int, float, bool, complex字串型態(String type) - str容器型態(Container type) - list, set, dict, tupleDict定義oneKValue = {};oneKValue["name"]="MyFreeIT"oneKValue["age"]="28"...取Valuelevel = levelDict[name]这里是引用d = {'key1'.原创 2021-06-18 12:52:36 · 107 阅读 · 0 评论 -
Python處理時間
strptime && strftimeHow strftime() works?時間字符串不能移動時間,包括增加、減少和其它功能性操作。只能對Dict和Tuple格式的時間進行操作YY_mm_dd_HH_MM_SS = "%Y-%m-%d %H:%M:%S";##把時間字符串轉換成Dict和Tuple格式,格式必須與字符本身高度一致,否則無法轉換time_mt_1 = datetime.datetime.strptime(time_mt, "%Y.%m.%d %H:%M")##原创 2021-06-18 12:18:36 · 125 阅读 · 0 评论 -
Python 處理字符串
{} format拼接通過{}{}{}依次拼接print("line {} is OK".format(line));{name} format指定名稱拼接應用於多項內容拼接,以名稱區分內容"Line Num= {line_num},Hit time is correct...\n".format(line_num=i)通過 + 拼接應用於簡單字符串拼接,效率低下,Coding不美觀"result/"+file_result_sql通過“,”拼接print('result:' +原创 2021-06-18 11:52:46 · 110 阅读 · 1 评论 -
Python讀寫文件
File Handling的Python File Write1Write to an Existing File To write to an existing file, you must add a parameter to the open() function:“a” - Append - will append to the end of the file “w” - Write - willoverwrite any existing contentCreate a New Fi原创 2021-06-18 01:24:50 · 214 阅读 · 0 评论 -
PyCharm配置Virtual Environment
Python虚拟环境(venv)允许仅为单个项目安装库,而不是在使用计算机的每个人之间共享库。Step 1: Select File…SettingsStep 2: Click “Project Interpreter”.Then find the gear icon in the upper right. click on it and select “Add”Step 3: Select Virtualenv Environment from the left.Then create a原创 2020-12-23 22:31:24 · 2815 阅读 · 0 评论 -
Pip的基础知识,及WARNING upgrading pip
查看Pip版本信息PS C:> pip show pipName: pipVersion: 20.1.1Summary: The PyPA recommended tool for installing Python packages.Home-page: https://pip.pypa.io/Author: The pip developersAuthor-email: pypa-dev@groups.google.comLicense: MIT升级Pippython -m原创 2020-12-22 15:00:58 · 278 阅读 · 0 评论 -
Python之基础知识
Python 是一种快速工作和系统集成的编程语言。查看Python版本信息PS C:> pythonPS C:\Users\Michael\Desktop\temp> python原创 2020-12-22 14:56:48 · 158 阅读 · 0 评论 -
Python之PyQt的QDialogButtonBox 和 QPushButton的区别(AttributeError: object has no attribute)
Designer模板初始化QDialogButtonBox ,在运行时出错,最后使用QPushButton。运行是报如下错误信息:Traceback (most recent call last): File "D:\Pythonwork\loginui.py", line 59, in <module> ui = Ui_login() File "D:\Pythonwork\loginui.py", line 19, in __init__ self.setupU原创 2020-12-22 11:45:36 · 1296 阅读 · 0 评论 -
Python之PyQt全面的基础知识
PyQt5是Python构建跨平台应用程序的工具包,PyQt5 Reference Guide是对应的开发文档。Qt是C++跨平台的类库,实现访问桌面应用程序和移动系统的高级别访问。包括本地和远程定位服务,NFC和蓝牙连接,基于Google Chromium web浏览器,以及传统UI的开发。PyQt5是Python绑定Qt v5的全方面集合,已经实现超过35个模块,并使Python能够在所有以C++作为开发语言的平台上被使用。。pip install PyQt5...原创 2020-12-21 13:20:40 · 1517 阅读 · 0 评论 -
PyDev插件负责集成Python到Eclipse
PyDev简介PyDev是针对Eclipse开发的IDE插件,负责集成Python到Eclipse。它被用于Python、Jython和IronPython编程,为Python语言开发带来很多便利,如下图所示:PyDev集成到EclipseHelp——Install new software ——Add ,通过本地或者网络安装,下面介绍网络安装步骤Name:PyDevLocation:http://pydev.org/updates选择PyDev for Eclipse检查所选插件原创 2020-12-20 11:08:37 · 275 阅读 · 4 评论