Python3 min()方法

Python 3 教程 · 2019-02-06 07:13:47

描述

Python min() 方法返回字符串中最小的字母。

语法

min()方法语法:

min(str)

参数

  • str -- 字符串。

返回值

返回字符串中最小的字母。

实例

以下实例展示了min()函数的使用方法:

#!/usr/bin/python3

str = "codercto";
print ("最小字符: " + min(str));

以上实例输出结果如下:

最小字符: b

点击查看所有 Python 3 教程 文章: https://codercto.com/courses/l/10.html

查看所有标签

Bad Blood

Bad Blood

John Carreyrou / Knopf / 2018-5-21 / USD 27.95

The full inside story of the breathtaking rise and shocking collapse of Theranos, the multibillion-dollar biotech startup, by the prize-winning journalist who first broke the story and pursued it to t......一起来看看 《Bad Blood》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

html转js在线工具
html转js在线工具

html转js在线工具