https://developer.apple.com/library/prerelease/ios/documentation/swift/conceptual/swift_programming_language/GuidedTour.html

点击图片中的:

下载代码解压缩

双击上面的图标,系统会打开 Xcode 6 beta

修改42 为32,右侧的结果马上就变成 32了。。。

神奇。

发现:项目目录下有个文件

contents.xcplayground


打开一看,牛大了:

1
2
3
4
5
6
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
standalone
=
"yes"
?>
<
playground
version
=
'3.0'
sdk
=
'macosx'
allows-reset
=
'YES'
>
    
<
sections
>
        
<
documentation
relative-path
=
'section-1.html'
/>
        
<
documentation
relative-path
=
'section-2.html'
/>
        
<
code
source-file-name
=
'section-3.swift'
/>

 

文档和 代码混合显示。。。