python中怎么判断字符串相等

2025-04-28 03:54:27
推荐回答(1个)
回答1:

代码如下:

a = 'abc'b = 'abc'if a == b:    print('a等于b')

效果如下: