用markdown的image代替HTML image
This commit is contained in:
@ -500,7 +500,7 @@ default:
|
||||
// 输出 "(1, 1) is inside the box"
|
||||
```
|
||||
|
||||
<img src="https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Art/coordinateGraphSimple_2x.png" width="288" height="288">
|
||||

|
||||
|
||||
在上面的例子中,`switch`语句会判断某个点是否是原点(0, 0),是否在红色的x轴上,是否在黄色y轴上,是否在一个以原点为中心的4x4的矩形里,或者在这个矩形外面。
|
||||
|
||||
@ -527,7 +527,7 @@ case let (x, y):
|
||||
// 输出 "on the x-axis with an x value of 2"
|
||||
```
|
||||
|
||||
<img src="https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Art/coordinateGraphMedium_2x.png" width="288" height="288">
|
||||

|
||||
|
||||
在上面的例子中,`switch`语句会判断某个点是否在红色的x轴上,是否在黄色y轴上,或者不在坐标轴上。
|
||||
|
||||
@ -559,7 +559,7 @@ case let (x, y):
|
||||
// 输出 "(1, -1) is on the line x == -y"
|
||||
```
|
||||
|
||||
<img src="https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Art/coordinateGraphComplex_2x.png" width="289" height="290">
|
||||

|
||||
|
||||
在上面的例子中,`switch`语句会判断某个点是否在绿色的对角线`x == y`上,是否在紫色的对角线`x == -y`上,或者不在对角线上。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user