some value of the variables changed with no reason
Asked by
rain
Look at the code directly:
x = Region(
r1 = x
r2 = x
y1 = Region(
y2 = Region(
print y1.y,y2.y
r1.y = y1.y
print r1.y
r2.y = y2.y
print r1.y
result:
481 499
481
499
After assignment to r2.y, why the value of r1.y changed to r2.y? And if there's r3,r4, all value will change to r4.y.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- rain
- Solved:
- Last query:
- Last reply:
To post a message you must log in.