Cut the string by 5 lengths. If index x is not specified it defaults to zero. text = "Hello Python developer" cut_str = text[:5] print ...
確定! 回上一頁