mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-11-24 15:18:57 +00:00
commit
97c96badd5
@ -41,10 +41,10 @@ Alice存了$200,然后检查她的余额,同时Bob存了$100。因为A1和A2
|
||||
|
||||
```
|
||||
Alice first Bob first Alice/Bob/Alice
|
||||
0 0 0
|
||||
A1 200 B 100 A1 200
|
||||
A2 "=200" A1 300 B 300
|
||||
B 300 A2 "=300" A2 "=300"
|
||||
0 0 0
|
||||
A1 200 B 100 A1 200
|
||||
A2 "= 200" A1 300 B 300
|
||||
B 300 A2 "= 300" A2 "= 300"
|
||||
```
|
||||
|
||||
所有情况下最终的余额都是$300。唯一的变数是Alice的余额单是否包含了Bob交易,不过无论怎么着客户都不会在意。
|
||||
|
Loading…
Reference in New Issue
Block a user