The source code is like:
with A:
do_some()
I want to choose differenct with
statement base on if
conditions like the code below. And the do_some()
is still under with
statement.
if cond1:
with A:
else:
with B:
do_some()
How should I do that?