python if 有关问题

python if 问题在 C 中, 经常用if ( a expression ){...}但在 python 中, 使用if a expression:...有

python if 问题
在 C 中, 经常用
    if ( a = expression ){
        ...
    }
但在 python 中, 使用
    if a = expression:
...
有语法错误, 我不得不使用
    a = expression
    if a:
        ...

不知 python 中怎样写出和 C 类似的语句.

我是 Python 菜鸟, 这个问题不是很好 google. 有劳指点.
[解决办法]
这个属于不良代码风格, if ((a = expression) != 0 ){ ...} 在python里if不能连带赋值,因为赋值操作没有返回值,就会发生语法错误