温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

swift开发:试玩 Apple 网站的 playground

发布时间:2020-07-24 16:23:13 来源:网络 阅读:706 作者:python族 栏目:移动开发

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

swift开发:试玩 Apple 网站的 playground

点击图片中的:


Open Playground

下载代码解压缩


swift开发:试玩 Apple 网站的 playground

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


swift开发:试玩 Apple 网站的 playground

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

神奇。


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



contents.xcplayground



打开一看,牛大了:


?

1
2
3
4
5
6
<?xmlversion="1.0"encoding="UTF-8"standalone="yes"?>
<playgroundversion='3.0'sdk='macosx'allows-reset='YES'>
    <sections>
        <documentationrelative-path='section-1.html'/>
        <documentationrelative-path='section-2.html'/>
        <codesource-file-name='section-3.swift'/>


 

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


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI