Latest web development tutorials

Metodo python3 max ()

stringa python3 stringa python3


descrizione

max () restituisce una stringa nelle più grandi lettere.

grammatica

max () metodo di sintassi:

max(str)

parametri

  • str - una stringa.

Valore di ritorno

Restituisce una stringa in lettere più grandi.

Esempi

L'esempio seguente mostra il massimo () per usare:

#!/usr/bin/python3

str = "w3big"
print ("最大字符: " + max(str))

Esempi dei risultati di output di cui sopra sono i seguenti:

最大字符: u

stringa python3 stringa python3