make gitbook
This commit is contained in:
@ -46,7 +46,7 @@
|
||||
|
||||
|
||||
|
||||
<div class="book" data-level="2.3" data-basepath=".." data-revision="1402644301599">
|
||||
<div class="book" data-level="2.3" data-basepath=".." data-revision="1402673847562">
|
||||
<div class="book-header">
|
||||
<!-- Actions Left -->
|
||||
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
|
||||
@ -587,7 +587,7 @@
|
||||
|
||||
<div class="page-inner">
|
||||
|
||||
<section class="normal" id="section-gitbook_455">
|
||||
<section class="normal" id="section-gitbook_21">
|
||||
|
||||
<blockquote>
|
||||
<p>翻译:wh1100717</p>
|
||||
@ -794,7 +794,7 @@ for scene in romeoAndJuliet {
|
||||
println("There are \(act1SceneCount) scenes in Act 1")
|
||||
// 打印输出:"There are 5 scenes in Act 1"
|
||||
</code></pre><p>相似地,您可以用<code>hasSuffix</code>方法来计算发生在不同地方的场景数:</p>
|
||||
<pre><code>“var mansionCount = 0
|
||||
<pre><code>var mansionCount = 0
|
||||
var cellCount = 0
|
||||
for scene in romeoAndJuliet {
|
||||
if scene.hasSuffix("Capulet's mansion") {
|
||||
|
||||
Reference in New Issue
Block a user