这是我的程序
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]
我正在为一家餐馆制作一个网站,我想制作一个预订表格,人们可以在其中输入他们的姓名、预订时间等。当他们提交此表格时,我想向我的电子邮件发送电子邮件。
我知道有一项名为 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)