- 博客(22)
- 资源 (22)
- 论坛 (1)
- 收藏
- 关注
原创 二binary,八octal,十六hex,十进制decimal数的表示(C++)
1、编程int main(){ int a =12; int b=012; int c=0x13; cout<<a<<endl<<b<<endl<<c;}121019
2018-03-09 21:11:12
706
原创 C++系列:函数调用(6)
1、代码#include <iostream>#include <math.h>int main(){ using namespace std;// cout<<"hello world"; int number; cin>>number; cout<<sqrt(number); ...
2018-03-09 20:34:10
586
原创 pyqt5 label等文字字体设置
1、代码passwdLabel.setFont(QFont("Microsoft YaHei"))设置文字的颜色:lineEdit.setStyleSheet("color:red");//文本颜色 lineEdit.setStyleSheet("background-color:red");//背景色 参考: 1.Qt 设置文本颜色字体...
2018-03-07 22:23:08
23039
原创 PyQt5 设置背景图片和logo
1、代码 def setIcon(self): palette1 = QPalette() # palette1.setColor(self.backgroundRole(), QColor(192,253,123)) # 设置背景颜色 palette1.setBrush(self.backgroundRole(), QBrush(...
2018-03-07 22:16:01
14667
原创 标准文件打开保存框 QFileDialog
1、代码from PyQt5 import QtWidgets from PyQt5.QtWidgets import QFileDialog class MyWindow(QtWidgets.QWidget): def __init__(self): super(MyWindow,self).__init__() self.m...
2018-03-07 20:59:31
441
原创 pyqt5 导入.ui .qrc文件格式的方法
1、导入.ui格式首先,代开cmd到.ui文件的位置,然后使用一下命令把.ui 格式转换成 .py 格式pyuic5 -x MyWidget.ui -o MyWidget.py2、导入 .qrc格式同理,类似只是代码是:Pyrcc5 input_file.qrc -o Out_file.py...
2018-03-07 15:48:01
2330
原创 PyQt5 -标准输入框QInputDialog
1、代码from PyQt5 import QtWidgetsfrom PyQt5.QtWidgets import QLineEdit,QInputDialogclass MyWindow(QtWidgets.QWidget): def __init__(self): super(MyWindow,self).__init__() self....
2018-03-07 15:16:50
2081
原创 pyqt5 编写编辑fruit简单界面(5)
1、代码#!/usr/bin/env python# Copyright (c) 2007-8 Qtrac Ltd. All rights reserved.# This program or module is free software: you can redistribute it and/or# modify it under the terms of the GNU Ge...
2018-03-07 11:28:13
494
原创 动态规划算法详解(最大公共字符,背包问题)
1、简介 动态规划算法通常基于一个递推公式及一个或多个初始状态。 当前子问题的解将由上一次子问题的解推出。使用动态规划来解题只需要多项式时间复杂度, 因此它比回溯法、暴力法等要快许多。现在让我们通过一个例子来了解一下DP的基本原理。 如果我们有面值为1元、3元和5元的硬币若干枚,如何用最少的硬币凑够11元? (表面上这道题可以用贪心算法,但贪心算法无法保证可以求出解,比如1元换...
2018-03-06 15:24:48
330
原创 pyqt5 编程 复利计算器的编写(4)
1、代码from PyQt5.QtGui import *from PyQt5.QtCore import *from PyQt5.QtWidgets import *import sysclass Form(QDialog): """docstring for """ def __init__(self, parent=None): super(...
2018-03-06 13:53:08
857
原创 pyqt5 各模块介绍
1、模块PyQt5的类被分成了多个模块,包括下面的:QtCoreQtGuiQtWidgetsQtMultimediaQtBluetoothQtNetworkQtPositioningEnginioQtWebSocketsQtWebKitQtWebKitWidgetsQtXmlQtSvgQtSqlQtTestQtCore模块包含核心的非GUI功能。该...
2018-03-05 10:30:04
4492
原创 pyqt交互界面实现 贝叶斯自动检查单词的实现(3)
1、代码checkword.pyimport re,collectionsdef words(text): return re.findall('[a-z]+', text.lower()) def train(features): model = collections.defaultdict(lambda: 1) for f in features: ...
2018-03-05 09:57:26
289
原创 pyqt5 计算器编写(2)
1、代码#!/usr/bin/env python# Copyright (c) 2007-8 Qtrac Ltd. All rights reserved.# This program or module is free software: you can redistribute it and/or# modify it under the terms of the GNU Ge...
2018-03-04 22:05:02
1158
原创 pyqt5 第一个人机交互界面 弹出式闹钟(1)
1.代码#!/usr/bin/env python# Copyright (c) 2007-8 Qtrac Ltd. All rights reserved.# This program or module is free software: you can redistribute it and/or# modify it under the terms of the GNU Ge...
2018-03-04 21:46:09
1466
原创 Pyqt5运行pyqt4各种错误解决方法汇总
1.NameError: name 'QApplication' is not definedfrom PyQt5.QtWidgets import QApplication2.NameError: name 'QLabel' is not definedfrom PyQt5.QtWidgets import *3.NameError: name 'QDialog' is ...
2018-03-04 21:43:27
8457
原创 python入门系列(29): python方法装饰器、静态方法
1、装饰器>>> def now():... print '2013-12-25'...>>> f = now>>> f()2013-12-25假设我们要增强now()函数的功能,比如,在函数调用前后自动打印日志,但又不希望修改now()函数的定义,这种在代码运行期间动态增加功能的方式,称之为“装饰器”(Decor...
2018-03-04 21:17:01
703
原创 python入门系列(27): python函数之函数、lambda函数、方法、拷贝
1、普通函数def greet(): print("hello world") 2、生成器generator2.1 yield生成器为了获得前n个斐波切纳数,分别使用普通函数和生成器两种方法来实现。普通函数def fab(max): n,a,b=0,0,1 while n<max: print(b) b...
2018-03-04 17:23:56
397
原创 Android软件开发基础认识
1.基础知识Android系统架构: 1、Linux内核 主要实现显示驱动、音频驱动、蓝牙驱动等。2、系统运行底层主要通过C、C++为Android 系统提供数据库的支持。3、应用框架层 提供构建应用程序的各种API4、应用层 安装的应用程序都属于这一层。2Android开发特色1.Android四大组件 活动、服务、广播接收器、内容提供器。2、丰富...
2018-03-02 21:55:13
229
原创 Android软件开发资料汇总
1、图书安卓使用谷歌发布的Android studio 进行开发。推荐图书: 1. 《第一行代码 Android》
2018-03-02 20:22:09
120
生成对抗网络画猫python
2018-12-25
python程序设计(浙江大学).rar
2020-10-22
深度卷积生成对抗网络TensorFlow代码实现
2018-12-25
深度学习与自然语言处理
2018-12-13
python qt gui快速编程PyQt编程指南 pdf扫描版及随书源代码源码.zip
2018-03-04
MySQL编译文件直接下载安装mysqlclient-1.3.7-cp35-none-win_amd64.whl
2018-01-28
Python for Probability,Statistics,and Machine Learning.pdf
2018-01-11
TensorFlow_ Large-Scale Machine Learning
2017-12-17
数据结构基础期末考试 2005-2012.7z
2017-12-09
小波变换详解及应用2页PPT
2017-11-27
C++编写的图书馆管理系统
2017-11-22
arduinoTimerOneLibrary_v1.1.0
2017-11-08
rosefunR的留言板
发表于 2020-01-02 最后回复 2020-04-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝