代码编写错误修正
发现代码中多出来一个空格。特此修正。
This commit is contained in:
@ -89,7 +89,7 @@ println("There are now \(Bank.coinsInBank) coins left in the bank")
|
||||
|
||||
```swift
|
||||
playerOne!.winCoins(2_000)
|
||||
println("PlayerOne won 2000 coins & now has \ (playerOne!.coinsInPurse) coins")
|
||||
println("PlayerOne won 2000 coins & now has \(playerOne!.coinsInPurse) coins")
|
||||
// 输出 "PlayerOne won 2000 coins & now has 2100 coins"
|
||||
println("The bank now only has \(Bank.coinsInBank) coins left")
|
||||
// 输出 "The bank now only has 7900 coins left"
|
||||
|
||||
Reference in New Issue
Block a user