def percentage(part, whole): percentage = 100 ... return str(percentage) + "%" print(percentage(3, 5)) ... Python % 符號(模運算符)
確定! 回上一頁