如何使用Pydroid 3制作android应用程序?

2024-03-29 13:51:46 发布

您现在位置:Python中文网/ 问答频道 /正文

你好,我是个初学者,我用我的android手机用Pydroid3做了这个程序。我想问的是,我怎样才能把它变成一个android应用程序?先谢谢你

print("This program calculates the residential electricity bill in leyeco V per day, month and year.")

sum = 0
n = 2
for E in range(0,n):
    P_string = input("Enter the powerr consumption in ilowattsss): ")
    P = float(P_string)
    T_string = input("Enter the hourss of usage per day: ")
    T = float(T_string)
    C = 6.8753
    E = P*T*C
    E1 = E*30
    E2 = E1*12
    print("The appliance has "+str(E)+" electricity cost per day in pesos.")
    print("The appliance has "+str(E1)+" electricity cost per month in pesos.")
    print("The appliance has "+str(E2)+" electricity cost per year in pesos.")
    sum = sum+E

E3 = sum*30
E4 = E3*12
print("The total power consumption cost "+str(sum)+" cost per day in pesos.")
print("The total power consumption cost "+str(E3)+" cost per month in pesos.")
print("The total power consumption cost "+str(E4)+" cost per year in pesos.")

Tags: theinstringyearelectricitysumprintcost