python编写程序、输入本金、年利率和年份、计算复利_basic knowledge of python--section one...
1.Python中使程序与用户进行交互的函数是input和print。如:importdatetimemyName=input("pleaseinputyourname:")birthyear=int("pleaseinputyourbirthyear:")#在Python里是用#做注释的,而不像是C或者Java等用/*------*/或//age=datetime.date.today().ye