Inconsistent use of tabs and spaces in indentation

后端 未结 6 2178
猫巷女王i
猫巷女王i 2020-11-28 15:24
def contains_sequence(dna1, dna2):
    \'\'\' (str, str) -> bool

    Return True if and only if DNA sequence dna2 occurs in the DNA sequence
    dna1.

    >&         


        
6条回答
  •  抹茶落季
    2020-11-28 15:34

    Assuming you have a "good" IDE, it's best to set the tab key to make 4 spaces instead of a "tab", that way you have less problems, and it's good practice, for when you will work with other people.

提交回复
热议问题