Basic magic of tuples

1.tu.count(22) Get the number of times the specified element appears in the tuple

 

2.tu.index(22) Get the index position of a value, which can determine the interval

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325185347&siteId=291194637