你好,我是个初学者,我用我的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.")
你的意思是直接从手机创建应用程序?如果是,我不知道是否可能
即使可能,这也不是一个简单的方法。您可以在PC上使用kivy和buildozer软件包:https://realpython.com/mobile-app-kivy-python/
相关问题 更多 >
编程相关推荐