回覆列表
  • 1 # 使用者6057070978277

    outputChords = ""

    outputLyrics = ""

    inBracket = False

    for i in range(len(line)):

    if line[i] == "[":

    inBracket = True

    outputChords = outputChords + " " * (max(0, len(outputLyrics.encode("gbk")) - len(outputChords.encode("gbk"))))

    elif inBracket and line[i] == "]":

    inBracket = False

    elif inBracket and line[i] == "#":

    pass

    elif inBracket and str.isupper(line[i]):

    outputChords = outputChords + line[i]

    elif inBracket:

    # DONT TRANSPOSE AND PUT IN OUTPUTCHORDS

    outputChords = outputChords + line[i]

    else:

    outputLyrics = outputLyrics + line[i]

  • 中秋節和大豐收的關聯?
  • 打過臘的頭髮可以正常染髮和燙髮嗎?