我必須將兩個Python函式轉換為PHP。第一個是: def listspaces(string): return [i -1 for i in range(len(string)) if string.startswith(' ', i-1)]
確定! 回上一頁