我有一个无法解决的可变问题

时间:2018-11-29 19:48:52

标签: python python-3.x

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

有一个问题,因为未定义用户名,但我确实定义了它!

1 个答案:

答案 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!")

在这种情况下,由于它与定义的缩进级别相同,因此已被定义。