以下示例显示了 len() 方法的用法。 #!/usr/bin/python3 str = "Welcom to yiibai python tutorials!" print ("Length of the string: ", len(str)).
確定! 回上一頁