📜  双字符 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:16.637000             🧑  作者: Mango

代码示例1
#my own code

def doubleChar(str):
  lisp = list(str)
  out = []
  string = ''
  for i in range(len(lisp)):
    out.append(lisp[i])
    out.append(lisp[i])
  for i in range(len(out)):
    string += out[i]
  return string