What does colon equal (:=) in Python mean?
问题 What does the := operand mean, more specifically for Python? Can someone explain how to read this snippet of code? node := root, cost = 0 frontier := priority queue containing node only explored := empty set 回答1: What you have found is pseudocode http://en.wikipedia.org/wiki/Pseudocode Pseudocode is an informal high-level description of the operating principle of a computer program or other algorithm. the := operator is actually the assignment operator. In python this is simply the = operator