temp <- merge(Matrix_1, Matrix_2, by = "row.names", all = TRUE)
temp$Row.names <- factor(temp$Row.names, levels=Complete_names)
temp <- temp[order(temp$Row.names),]
rownames(temp) <- temp[,1]
Desired_output <- as.matrix(temp[,-1])
V1.x V1.y
D 1 NA
C 2 6
A NA 4
B 3 5
有一个问题,因为未定义用户名,但我确实定义了它!
答案 0 :(得分:0)
否,您的username
变量未定义,因为其缩进错误。也许您想要这样:
if stuff == "ANONYMOUS04":
username = input("What Is The Username?: ")
password = input("What Is The Password?: ")
if username == "M8TE" and password == "CICADA3007":
print("Welcome Dear Master Hassan!")
在这种情况下,由于它与定义的缩进级别相同,因此已被定义。