文章 2022-08-25 来自:开发者社区

python编程:turtle函数库笔记-4

import turtle def main(): turtle.pensize(3) turtle.penup() turtle.goto(-200,-50) turtle.pendown() turtle.begin_fill() turtle.color("red") turtle.circle(40, steps=3) tu...

python编程:turtle函数库笔记-4
文章 2022-08-25 来自:开发者社区

python编程:布尔表达式与布尔代数笔记-2

python编程:布尔表达式与布尔代数笔记-2

python编程:布尔表达式与布尔代数笔记-2
文章 2022-08-25 来自:开发者社区

python编程:format格式输出笔记-1_

python编程:format格式输出笔记-1_

python编程:format格式输出笔记-1_
文章 2022-08-24 来自:开发者社区

python编程:format格式输出笔记-1

python推荐使用format方式输出

文章 2021-11-17 来自:开发者社区

python编程:turtle函数库笔记

补充实例:import turtle def main(): turtle.pensize(3) turtle.penup() turtle.goto(-200,-50) turtle.pendown() turtle.begin_fill() turtle.color("red") turtle.circle(40, steps=3) ...

python编程:turtle函数库笔记
文章 2021-11-17 来自:开发者社区

python编程:布尔表达式与布尔代数笔记

python编程:布尔表达式与布尔代数笔记

python编程:布尔表达式与布尔代数笔记
文章 2021-11-17 来自:开发者社区

python编程:format格式输出笔记

python推荐使用format方式输出

python编程:format格式输出笔记
文章 2019-10-28 来自:开发者社区

《Python编程从0到1》笔记5——图解递归你肯定看完就能懂!

本小节的示例比较简单,因为在每次递归过程中原问题仅缩减为单个更小的问题。这样的问题往往能够用简单循环解决。这类递归算法的函数调用图是链状结构。这种递归类型被称为“单重递归”(single recursion)。 示例一:编写函数seq(n),打印从1到n的数字。 可以很容易地用循环解决这个问题: def seq(n):     i = 1   &n...

文章 2019-10-27 来自:开发者社区

《Python编程从0到1》笔记4——你分得清“索引和切片”吗?

Python为序列类型(sequence types)[1]提供了独特的索引(indexing)和切片(slicing)机制以访问序列的某个元素或某一部分。 [1] 如list, tuple, range, str, bytes, bytearray, memoryview 1.索引 在前文中已经展示过使用索引访问字符串、列表、元组的方法。像大多数其他编程语言一样,Python的索引从0开始(长....

文章 2019-10-25 来自:开发者社区

《Python编程从0到1》笔记3——欧几里得算法

本节以欧几里得算法(这是人类历史上最早记载的算法)为示例,向读者展示注释、文档字符串(docstring)、变量、循环、递归、缩进以及函数定义等Python语法要素。 欧几里得算法:“在数学中,辗转相除法,又称欧几里得算法(Euclidean algorithm),是求最大公约数的算法。辗转相除法首次出现于欧几里得的《几何原本》(第VII卷,命题i和ii)中,而在中国则可以追溯至东汉出现的《九章....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

Python学习站

Python学习资料大全,包含Python编程学习、实战案例分享、开发者必知词条等内容。

+关注
相关镜像