python 将目录下所有文件夹的绝对路径写到文件中
摘要:import os dirlist = os.listdir() #打开文件 fo = open("dirs.txt","w") #遍历 for dir in dirlist: #判断如果是文件夹 if os.path.isdir(dir): #写 file.write(str(os.path.ab
阅读全文
Debug Assertion Failed!
摘要:程序生成没有问题,一运行就出现这个错误 File: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp Line: 908 Expression: is_block_type_valid(header->_block_use) For informa
阅读全文
Qt 字符串转md5
摘要:Qt 字符串转md5 #include <QCryptographicHash> QString strToMd5(QString str) { QByteArray qba = QCryptographicHash::hash(str.toLatin1(), QCryptographicHash:
阅读全文
Qt注册自定义类型
摘要:Qt注册自定义类型 #include <QMetaType> // 注册完成之后就可以发送自定义参数类型的信号了 qRegisterMetaType<BaseDevice::DeviceType>("BaseDevice::DeviceType");
阅读全文