上善若水

水善利万物而不争
随笔 - 175, 文章 - 0, 评论 - 10, 阅读 - 14万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  Python

摘要:##RGB与BGR 人只有三种感色细胞 比如感知黄=红+绿#HSV:或叫HSB 色彩空间 也是OpenCV用的最多的 # H Hue 色相比如红色、蓝色,用角度度量 取值范围0度到360度 红0度 绿120度 蓝240度 绕圈 #Saturation 饱和度 也理解为纯度 从圆心到边 从内到外 #v 阅读全文

posted @ 2023-05-12 11:13 董锡振 阅读(22) 评论(0) 推荐(0) 编辑

摘要:python3中的pass语句是一个空语句,什么都不做,执行它时什么也没有发生,是一个空操作。 在函数、类、循环、判断等语句中 # 1. empty function def func(): pass # remember to implement this func() # 2. empty cl 阅读全文

posted @ 2023-05-12 10:54 董锡振 阅读(13) 评论(0) 推荐(0) 编辑

摘要:调出cmd 黑窗口录入如下命令 查看电脑上python安装位置 where python 找到对应的文件 右键查看属性 即可 也可以使用 命令 python -V 或 python --version 查看python版本 阅读全文

posted @ 2023-04-10 18:05 董锡振 阅读(2155) 评论(0) 推荐(0) 编辑

摘要:输入python -m pip install --upgrade pip,一行代码轻松解决 阅读全文

posted @ 2023-04-10 17:53 董锡振 阅读(308) 评论(0) 推荐(0) 编辑

摘要:python 图片素描 阅读全文

posted @ 2022-07-13 15:17 董锡振 阅读(43) 评论(0) 推荐(0) 编辑

摘要:Python | 浅学 | 11 安装requests No module named 'requests' 阅读全文

posted @ 2022-07-13 14:08 董锡振 阅读(36) 评论(0) 推荐(0) 编辑

摘要:python | 浅学 | 10 global 与 nonlocal 阅读全文

posted @ 2022-07-10 15:47 董锡振 阅读(19) 评论(0) 推荐(0) 编辑

摘要:python | 浅学 | 9 多重继承 单继承示例 阅读全文

posted @ 2022-07-10 15:35 董锡振 阅读(42) 评论(0) 推荐(0) 编辑

摘要:python | 浅学 | 8 数组 推导式 阅读全文

posted @ 2022-07-10 14:58 董锡振 阅读(68) 评论(0) 推荐(0) 编辑

摘要:python 运算符模块 operator 阅读全文

posted @ 2022-07-02 16:59 董锡振 阅读(628) 评论(0) 推荐(0) 编辑

摘要:LookupError: 'base64' is not a text encoding; use codecs.encode() to handle arbitrary codecs 阅读全文

posted @ 2022-07-02 16:15 董锡振 阅读(1264) 评论(0) 推荐(0) 编辑

摘要:python | TypeError: can only concatenate str (not "int") to str 只能将str(而不是“int”)连接到str 阅读全文

posted @ 2022-07-02 16:14 董锡振 阅读(149) 评论(0) 推荐(0) 编辑

摘要:import time # pygame import pygame print("欢迎使用本程序") time.sleep(1.8) print("播音系统已启动") print("*************") pygame.mixer.init() pygame.mixer.music.loa 阅读全文

posted @ 2022-07-02 16:13 董锡振 阅读(75) 评论(0) 推荐(0) 编辑

摘要: 阅读全文

posted @ 2022-07-02 16:12 董锡振 阅读(71) 评论(0) 推荐(0) 编辑

摘要:集成开发环境(IDE:Integrated Development Environment): PyCharm PyCharm 是由 JetBrains 打造的一款 Python IDE,支持 macOS、 Windows、 Linux 系统。 PyCharm 功能 : 调试、语法高亮、Projec 阅读全文

posted @ 2022-05-11 10:28 董锡振 阅读(66) 评论(0) 推荐(0) 编辑

摘要:1、python基础知识学习网址: https://www.runoob.com/python3/python3-install.html 环境下载我使用的是这个: 对应的文档支持是:4. 在 Windows 上使用 Python — Python 3.10.4 文档 下载后安装成功使用cmd验证如 阅读全文

posted @ 2022-05-09 16:26 董锡振 阅读(38) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示