IndentationError: unexpected unindent WHY?

后端 未结 4 1192
盖世英雄少女心
盖世英雄少女心 2021-01-01 09:10

IndentationError: unexpected unindent WHY???

#!/usr/bin/python
import sys
class Seq:
    def __init__(self, id, adnseq, colen):
        self.id     = id
             


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-01 09:24

    It's because you have:

    def readTTable(fname):
        try:
    

    without a matching except block after the try: block. Every try must have at least one matching except.

    See the Errors and Exceptions section of the Python tutorial.

提交回复
热议问题