标题说它-如果我有一个这样的功能,想改变(打印输出,例如)我除了重新定义它???地址:
import sys
def UselessFunction(Weight, WeightIncrease):
for Year in range(0, 16):
Weight = Weight + WeightIncrease
Weight_On_Moon = Weight * 0.165
print('Your weight on the moon would be %s in the year %s' % (Weight_On_Moon, Year))
Weight = Weight + 1
想把“你在……上的重量”改成“在月球上你会比在地球上轻得多!”!事实上,您在%s年的重量仅为%s千克(月球上的重量,年))
谢谢大家
下面是一个hokey的例子:
相关问题 更多 >
编程相关推荐