using class function to validate the order of user's input and give an error message if there is an invalid input (Python)

后端 未结 0 742
-上瘾入骨i
-上瘾入骨i 2021-01-11 17:36

class Character():

val1 = "This order \'()\'\'{}\'\'[]\'\'(){}[]\' are valid"
val2 = "\'[)\'\'({[)]\'\'{{{\' are invalid"


def char(self)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题