Tuple Comparison
问题 I`ve a dictionary defined like this : d = {"date": tuple(date),"open":tuple(open),"close":tuple(close),"min":tuple(min),"max":tuple(max),"MA":tuple(ma)} Each one of those tuples contains a list of values ( same number of values for each tuple ), how can I iterate trough each value of paticular keys to compare if "close" is superior to "MA" ? 回答1: what am I missing? d['close'] > d['MA'] ? Edit: Re, your comments [...] what I want to return is how many times one element of "close" is > to the