我的php cUrl有问题。 它什么也不会输出,所以每当我运行它时,它都会返回:“ didnt work”
def profitCalculator(summed, args_tuple):
counter = 1
profit = 0
args_tuple = dict(args_tuple)
while args_tuple.has_key("min" + str(counter)):
if True:
for i in range(1, counter):
iplus = i + 1
if iplus % 2 == 0:
profit += (args_tuple['min' + str(iplus)] * args_tuple['percentage' + str(i)])
if i - 2 == 0:
profit += ((args_tuple['min' + str(iplus)]) * args_tuple['percentage' + str(i)])
if i == counter - 1:
summed -= args_tuple['min' + str(counter)]
profit += (summed * args_tuple['percentage' + str(counter)])
counter = counter + 1
return profit
我搜索了无数教程等,但没有任何帮助对我有用。 提前寻求帮助:)