小编Jus*_*tin的帖子

如何在可能不唯一的元素列表中找到最大数量的?

这是我的程序

item_no = []
max_no = 0
for i in range(5):
    input_no = int(input("Enter an item number: "))
    item_no.append(input_no)
for no in item_no:
    if no > max_no:
       max_no = no
high = item_no.index(max_no)
print (item_no[high])
Run Code Online (Sandbox Code Playgroud)

输入示例: [5, 6, 7, 8, 8]

输出示例: 8

如何更改程序以在数组中输出相同的最高数字?

预期产量: [8, 8]

python arrays python-3.x

19
推荐指数
3
解决办法
3103
查看次数

如何在 Netlify 上发送带有表单提交的电子邮件?

我正在为一家餐馆制作一个网站,我想制作一个预订表格,人们可以在其中输入他们的姓名、预订时间等。当他们提交此表格时,我想向我的电子邮件发送电子邮件。

我知道有一项名为 Zapier 的服务可以让您做到这一点,但我正在寻找免费的东西(在这种情况下,Zapier 免费套餐每月只有 100 个任务,这可能还不够)。

我希望它看起来像这样:

<form>
    <input type="text" placeholder="Your name" />
    <!-- and some other inputs -->
    <input type="submit" value="Send" />
    <!-- after this send an email with entered information -->
</form>
Run Code Online (Sandbox Code Playgroud)

html netlify

5
推荐指数
2
解决办法
3655
查看次数

标签 统计

arrays ×1

html ×1

netlify ×1

python ×1

python-3.x ×1