下一行完成什么工作?

因此,我试图解决一种算法,同时试图找到一种算法,但我发现一个算法非常短且非常快,只是一个问题...我似乎无法理解这行的含义:

完整解决方案:

def proper_fractions(n):
    phi = n > 1 and n
    print(phi)
    for p in range(2, int(n ** .5) + 1):
        if not n % p:
            phi -= phi // p
            while not n % p:
                n //= p
    if n > 1: phi -= phi // n
    return phi

我不明白的行:

phi = n > 1 and n

Please forgive me If it is very easy to understand, I just have never come across something like this, I've only used and in if statements, here is what I changed the line to (I think it works like the other one, but not sure how the other one does exactly what the following line which I changed does):

phi = n if n > 1 else False

请有人能弄清楚我不明白的线是如何工作的吗?