![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Python-数据挖掘+机器学习
Python程序开发,Python数据挖掘与机器学习
文文鑫
这个作者很懒,什么都没留下…
展开
-
Opencv-树莓派3B+安装opencv3.4.0在python3.7/python2.7环境下运行
一,换源操作 安装OpenCV前,先切换到国内的apt-get下载源,国外源速会非常慢, 因此为了提高树莓派的下载速度,按照以下操作完成软件源的更换: 1.编辑 /etc/apt/sources.list 文件,删除原文件所有内容,用以下内容取代原文件所有内容: deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main non-free contrib deb-src http://mirrors.tuna.tsinghu原创 2020-10-22 02:53:50 · 652 阅读 · 0 评论 -
Python-input函数基本语法
# python里面使用input内置函数来接收用户的输入 # input()==>括号中填写提示内容 password=input("请输入银行卡密码:") print("密码为:"+password) #注意: 不管用户输入的是什么,变量保存的都是字符串 age=input("请输入你的年龄:") print(type(age)) # <class 'str'> print("你明年的年龄为:"+age+1) #这是错误的 ...原创 2021-03-01 19:49:06 · 1196 阅读 · 0 评论 -
Python-print函数基本语法
# print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) print("xxxxxx") print("你好", "我是", "文鑫") print("你好", "我是", "文鑫", sep='+', end='------') print("你好", "我是", "文鑫", sep='+') # Python里面使用print内嵌函数来输出类容 ...原创 2021-03-01 19:34:57 · 472 阅读 · 0 评论 -
Python-标识符的命名规则与规范
# 标识符:变量,模块名,函数名,类名 # 标识符的命名规则与规范: # 1.由数字,字母和下划线_组成,不能以数字开头 # 2.严格的区分大小写 # 3.不能使用关键字:if/for/else/class/break/elif/True/False....... # 规范:建议遵守 # 1.顾名思义 # 2.遵守一定的命名规范:小驼峰命名userNAME;大驼峰命名:PersonName;使用下划线连接:user_name # 在Python中的变量,函数和模块名使用下划线命名;Python里的类名使用大原创 2021-01-20 18:18:27 · 641 阅读 · 0 评论 -
Python-变量以及数据类型
# a就称之为变量====================================== a = '你好,python' print(a) print(type(a)) # 查看数据类型<class 'str'> # ================================================= b = 34 print(b) print(type(b)) # 查看数据类型<class 'int'> # =========================原创 2021-01-19 17:05:13 · 102 阅读 · 0 评论 -
Python-交互式编程介绍
这种交互式的编程环境,我们也可以称之为REPL,即读取(Read)输入的内容,执行(Eval)用户输入的指令,打印(Print)执行结果,然后进行循环(Loop),Python支持交互式编程。原创 2021-01-19 15:59:32 · 649 阅读 · 0 评论