为什么“bag”>“apple”的结果在 Python 中为 True?

Why the result of “bag” > “apple” is True in Python?

为什么Python中“bag”>“apple”的结果为True? 我在下面尝试了这段代码,我不知道它为什么显示这个结果以及如何显示?请哪位大侠解释一下。

打印("bag" > "apple")

正确

我相信这是 True 因为 Python 比较每个单词的第一个字母。并且 b 在 Python 中大于 a