a:=9/5 //a=1
b:=9/5.0 //b=1.8
c:=10/5.0 //b=2.0
此时用b或c当索引,以下算子会报错
select_obj (objects, ObjectSelected, b)
解决办法:
d:=int(b) //d=1
select_obj (objects, ObjectSelectd,d)
a:=9/5 //a=1
b:=9/5.0 //b=1.8
c:=10/5.0 //b=2.0
此时用b或c当索引,以下算子会报错
select_obj (objects, ObjectSelected, b)
解决办法:
d:=int(b) //d=1
select_obj (objects, ObjectSelectd,d)