我试图运行以下代码,但是它不起作用:
static int rechercheMaxRec(int[] unTab, int j, int max) {
if (j < unTab.length) {
return rechercheMaxRec(unTab, j+1, Math.max(max, unTab[j]));
}
return max;
}
答案 0 :(得分:-1)
我错过了!在is_numeric之前
str_len = 3
my_list = ["A", "H"]
alphabet = [" ", "A", "H"]
for i in range(str_len-1):
my_list = [i+j if i[-1] != " " else i for i in my_list for j in alphabet]
print(my_list)
谢谢Vivek_23