Hi christing,
你指的是判断语句吗?
a = "AAA"
b = "BBB"
if a == b :
print "a equals b"
else:
print "a and b are not equal"
此外,有关Python的问题,我建议你到Python Forum提问。
Regards,
Kyle
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.