我正在关注Traversy Media的MERN堆栈教程,目前正在尝试将其部署到Heroku。但是每当我尝试#include<octave.h>
#include<itpp/itcomm.h>
时,它都会给我以下信息:
A = [10, 25, 30, 20, 27, 29]
def tuple_finder(num_value, num_array):
i = 0
j = i + 1
tuple_list = []
for e in num_array[:-1]:
if (num_array[i] <= num_value <= num_array[j])\
or (num_array[i] >= num_value >= num_array[j]):
print(num_array[i], num_array[j])
tuple_list.append((num_array[i], num_array[j]))
i += 1
j += 1
else:
i += 1
j += 1
print(tuple_list[-1])
tuple_finder(28, A)
我遵循了每个步骤,以确保我正确地完成了所有操作。
这是我的GitHub代码:
https://github.com/Stick-z/MERN-Shopping
以下是教程:https://www.youtube.com/watch?v=71wSzpLyW9k&list=PLillGF-RfqbbiTGgA77tGO426V3hRF9iE&index=8