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

查看所有标签

How to Solve It

How to Solve It

Zbigniew Michalewicz、David B. Fogel / Springer / 2004-03-01 / USD 59.95

This book is the only source that provides comprehensive, current, and detailed information on problem solving using modern heuristics. It covers classic methods of optimization, including dynamic pro......一起来看看 《How to Solve It》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具