def upper_everything(elements: list[str] -> list[str]): #指定傳入參數的類型,及返回參數的類型 return [element.upper() for element in elements] if __name__ == '__main__': upper_everything('PyCharm')