java类型转换

(类型) 变量
int num = 3;
float num2 = (float) num;	//num2 = 3.0;

python3类型转换

num = 3
num2 = float(num)	#num2 = 3.0