# 我有多个有时具有相同值的变量，但并非总是如此，如何指定要使用python的函数的哪一部分

``````A = B = C = D = E = 1
def pointscalcwomen(value):
if value == AWomen:
print("AWomen")
if value < 12:
womenspoints = 105 - 5 * (int(AWomen))
elif value < 61:
womenspoints = 61 - AWomen
else:
womenspoints = 1
elif value == BWomen:
print("BWomen")
if value < 7:
womenspoints = 80 - 5 * (int(BWomen))
elif value < 56:
womenspoints = 56 - BWomen
else:
womenspoints = 1
elif value == Cw:
print("Cw")
if value < 51:
womenspoints = 51 - Cw
else:
womenspoints = 1
elif value == D:
print("DWomen")
if value < 31:
womenspoints = 31 - DWomen
else:
womenspoints = 1
elif value == EWomen:
print("EWomen")
if value < 12:
womenspoints = 105 - 5 * (int(EWomen))
elif value < 61:
womenspoints = 61 - EWomen
else:
womenspoints = 1
return womenspoints
if "A" in row[0]:
points = pointscalcwomen(AWomen)
print(points)
A = A + 1
elif "B" in row[0]:
points = pointscalcwomen(BWomen)
print(points)
B = B + 1
elif "C" in row[0]:
points = pointscalcwomen(CWomen)
print(points)
C = C + 1
elif "D" in row[0]:
points = pointscalcwomen(DWomen)
print(points)
D = D + 1
elif "E" in row[0]:
points = pointscalcwomen(EWomen)
print(points)
E = E + 1
``````

However, I am facing the problem that if A is never in row[0], then the first B will get 100 points, not 75 etc. This is because at that point `value == AWomen == BWomen`, is there a way to get around this. I have thought of changing my code to something like:

``````elif "B" in row[0]:
A = 10000
points = pointscalcwomen(BWomen)
B = B + 1
``````

``````A
A
A
A
B
B
B
C
C
``````

``````A
A
B
A
B
B
``````