Python:实现字符串转大写字母算法
from string import ascii_lowercase, ascii_uppercase
def capitalize(sentence: str) -> str:
if not sentence:
from string import ascii_lowercase, ascii_uppercase
def capitalize(sentence: str) -> str:
if not sentence: