let string = originalString.replacingOccurrences(of: "%[0-9a-fA-F]{2}",
with: "",
options: .regularExpression,
range: nil)
答案 0 :(得分:0)
*
的优先级高于-
,因此您必须将它们括在括号中
space = ' ' * (len(userString) - 1)