📜  反转字符串 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:12.493000             🧑  作者: Mango

代码示例3
def reverse(s):
  reversed = ""
  count = len(s)
  while count > 0:
    reversed += s[count - 1]  
    count = count - 1
  return reversed

s = "interview"
print(reverse(s))