如何阻止来自外部的随机呼叫

时间:2019-07-19 02:00:54

标签: node.js express nodemon

在我的api域上运行带有express的nodemon 我显然总是从外面接到随机电话 有点毁了我的工作流程...:)

start = input("simple or compound: ")

if start == "simple" or "Simple":
    a = float(input('Starting balance: '))
    b = float(input('Rate: '))
    c = int(input('Years: '))

    final = int(a+((a*b*c)/100))
    print(final)
elif start == "compound" or "Compound":
    d = float(input('Starting balance: '))
    e = float(input('Rate: '))
    f = int(input('Years: '))

    final2 = int(d*(1+(e/100))**f)
    print(final2)
else:
    d = float(input('Starting balance: '))
    e = float(input('Rate: '))
    f = int(input('Years: '))

    final3 = int(d*(1+(e/100))**f)
    print(final3)

..... list不断打开........................

我应该增加安全性还是只按摩一下? 感谢您的任何建议:)

0 个答案:

没有答案