--- title: 算法实例 date: 9997-12-29 tags: [计算机,算法] --- 各个算法小实例。 [Python Hello World 实例](https://www.runoob.com/python3/python3-helloworld.html "python Hello World 实例") [Python if 语句](https://www.runoob.com/python3/python3-if-example.html) [Python 字符串判断](https://www.runoob.com/python3/python3-check-string.html) [Python 判断字符串长度](https://www.runoob.com/python3/python-string-length.html) [Python 判断字符串是否为数字](https://www.runoob.com/python3/python3-check-is-number.html) [Python 移除字符串中的指定位置字符](https://www.runoob.com/python3/pyhton-remove-ith-character-from-string.html) [Python 判断字符串是否存在子字符串](https://www.runoob.com/python3/python-check-substring-present-given-string.html) [Python 字符串大小写转换](https://www.runoob.com/python3/python3-upper-lower.html) [Python 将字符串的时间转换为时间戳](https://www.runoob.com/python3/python-str-timestamp.html) [Python 使用正则表达式提取字符串中的 URL](https://www.runoob.com/python3/python-find-url-string.html) [Python 将字符串作为代码执行](https://www.runoob.com/python3/python-execute-string-code.html) [Python 字符串翻转](https://www.runoob.com/python3/python-string-reverse.html) [Python 对字符串切片及翻转](https://www.runoob.com/python3/python-slicing-rotate-string.html) [Python 计算字典值之和](https://www.runoob.com/python3/python-sum-dictionary.html) [Python 移除字典点键值(key/value)对](https://www.runoob.com/python3/python-remove-a-key-from-dictionary.html) [Python 合并字典](https://www.runoob.com/python3/python-merging-two-dictionaries.html) [Python 判断元素是否在列表中存在](https://www.runoob.com/python3/python-check-element-exists-in-list.html) [Python 将列表中的头尾两个元素对调](https://www.runoob.com/python3/python-list-interchange.html) [Python 将列表中的指定位置的两个元素对调](https://www.runoob.com/python3/python3-list-swap-two-elements.html) [Python 清空列表](https://www.runoob.com/python3/python-clear-list.html) [Python 复制列表](https://www.runoob.com/python3/python-copy-list.html) [Python 翻转列表](https://www.runoob.com/python3/python-reversing-list.html) [Python 计算元素在列表中出现的次数](https://www.runoob.com/python3/python-count-occurrences-element-list.html) [Python 计算列表元素之和](https://www.runoob.com/python3/python-sum-list.html) [Python 计算列表元素之积](https://www.runoob.com/python3/python-multiply-list.html) [Python 查找列表中最小元素](https://www.runoob.com/python3/python-min-list-element.html) [Python 查找列表中最大元素](https://www.runoob.com/python3/python-max-list-element.html) [Python list 常用操作](https://www.runoob.com/python3/python3-list-operator.html) [Python 计算数组元素之和](https://www.runoob.com/python3/python3-sum-array.html) [Python 数组翻转指定个数的元素](https://www.runoob.com/python3/python3-array-rotation.html) [Python 判断闰年](https://www.runoob.com/python3/python3-leap-year.html) [Python 生成日历](https://www.runoob.com/python3/python3-calendar.html) [Python 获取昨天日期](https://www.runoob.com/python3/python3-get-yesterday.html) [Python 获取几天前的时间](https://www.runoob.com/python3/python-get-dayago.html) [Python 计算每个月天数](https://www.runoob.com/python3/python3-month-days.html) [Python 将时间戳转换为指定格式日期](https://www.runoob.com/python3/python-timstamp-str.html) [Python 按键(key)或值(value)对字典进行排序](https://www.runoob.com/python3/python-sort-dictionaries-by-key-or-value.html) [Python 插入排序](https://www.runoob.com/python3/python-insertion-sort.html) [Python 快速排序](https://www.runoob.com/python3/python-quicksort.html) [Python 选择排序](https://www.runoob.com/python3/python-selection-sort.html) [Python 冒泡排序](https://www.runoob.com/python3/python-bubble-sort.html) [Python 归并排序](https://www.runoob.com/python3/python-merge-sort.html) [Python 堆排序](https://www.runoob.com/python3/python-heap-sort.html) [Python 计数排序](https://www.runoob.com/python3/python-counting-sort.html) [Python 希尔排序](https://www.runoob.com/python3/python-shellsort.html) [Python 拓扑排序](https://www.runoob.com/python3/python-topological-sorting.html) [Python 二分查找](https://www.runoob.com/python3/python-binary-search.html) [Python 线性查找](https://www.runoob.com/python3/python-linear-search.html) [Python 九九乘法表](https://www.runoob.com/python3/python3-99-table.html) [Python 平方根](https://www.runoob.com/python3/python3-square-root.html "python Hello World 实例") [Python 二次方程](https://www.runoob.com/python3/python3-quadratic-roots.html) [Python 阶乘实例](https://www.runoob.com/python3/python3-factorial.html) [Python 获取最大值函数](https://www.runoob.com/python3/python3-largest-number.html) [Python 最大公约数算法](https://www.runoob.com/python3/python3-hcf.html) [Python 最小公倍数算法](https://www.runoob.com/python3/python3-lcm.html) [Python 数字求和](https://www.runoob.com/python3/python3-add-number.html "python Hello World 实例") [Python 斐波那契数列](https://www.runoob.com/python3/python3-fibonacci-sequence.html) [Python 使用递归斐波那契数列](https://www.runoob.com/python3/python3-fibonacci-recursion.html) [Python 质数判断](https://www.runoob.com/python3/python3-prime-number.html) [Python 输出指定范围内的素数](https://www.runoob.com/python3/python3-prime-number-intervals.html) [Python 判断奇数偶数](https://www.runoob.com/python3/python3-odd-even.html) [Python 随机数生成](https://www.runoob.com/python3/python3-random-number.html) [Python 阿姆斯特朗数](https://www.runoob.com/python3/python3-armstrong-number.html) [Python 计算 n 个自然数的立方和](https://www.runoob.com/python3/python-cube-sum.html) [Python 简单计算器实现](https://www.runoob.com/python3/python3-calculator.html) [Python 计算圆的面积](https://www.runoob.com/python3/python3-area-of-a-circle.html) [Python 计算三角形的面积](https://www.runoob.com/python3/python3-area-triangle.html) [Python 摄氏温度转华氏温度](https://www.runoob.com/python3/python3-celsius-fahrenheit.html) [Python 十进制转二进制、八进制、十六进制](https://www.runoob.com/python3/python3-conversion-binary-octal-hexadecimal.html) [Python ASCII码与字符相互转换](https://www.runoob.com/python3/python3-ascii-character.html) [Python 交换变量](https://www.runoob.com/python3/python3-swap-variables.html) [Python 文件 IO](https://www.runoob.com/python3/python3-file-io.html) [Python 约瑟夫生者死者小游戏](https://www.runoob.com/python3/python-joseph-life-dead-game.html) [Python 五人分鱼](https://www.runoob.com/python3/python-five-fish.html) [Python 实现秒表功能](https://www.runoob.com/python3/python-simplestopwatch.html) [Python 打印自己设计的字体](https://www.runoob.com/python3/python-your-font.html)