如何将以下代码从Java转换为Python?
AtomicInteger cont = new AtomicInteger(0); int value = cont.getAndIncrement();
python
python ×1