mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-13 18:00:18 +08:00
style: use string interpolation in print
This commit is contained in:
@@ -2683,8 +2683,8 @@ $$
|
||||
let n = 100
|
||||
let nums = randomNumbers(n: n)
|
||||
let index = findOne(nums: nums)
|
||||
print("数组 [ 1, 2, ..., n ] 被打乱后 =", nums)
|
||||
print("数字 1 的索引为", index)
|
||||
print("数组 [ 1, 2, ..., n ] 被打乱后 = \(nums)")
|
||||
print("数字 1 的索引为 \(index)")
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user