更新1:
How do you get the length of x?
更新2:
And how do you get the range of x?