- 博客(3)
- 收藏
- 关注
原创 mac系统 python安装wheel文件
mac系统 python安装wheel文件 新手如我在pycharm通过pip install xxx的时候会遇到报错,然后在网上找到的wheel文件下载后不会安装,这里记录一下方法: 1.pip安装失败在terminal第一行报错的位置附近,会有xxx包的下载地址,点进去之后直接下载这个包的whl文件; 或者在网上自行搜索所需包的whl文件; 2.下载好之后,把whl文件放到需要该包所用环境的路径下(Library/Frameworks/Python.framework/Versions/3.6/lib/
2021-04-18 20:43:37
3753
1
原创 QT 单例模式 代码实现最好的方式
单例模式 模板 可套用模板,很简单就不细说了 头文件 #include <QObject> class Configs : public QObject { Q_OBJECT public: ///< 提供数据访问入口 lht<lht@hcctc.cn> [ 2021-03-17 ] static Configs& get_instance(); private: ///< 单例模式实现 lht<lht@hcctc.
2021-03-17 17:22:14
294
转载 QT 单例 模板
线程安全单例 class CSingletonTwo { private: CSingletonTwo(){}//构造函数私有 public: static CSingletonTwo& getInstance(void); void init(void) { qDebug()<<" Test CSingletonTwo.........."; } }; CSingletonTwo& CSingletonTwo::getIn
2021-03-17 10:18:28
370
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人