Swift print All In One
Swift print All In One
/* Swift print All In One */
var str = "Hello, World!"
print(str)
print("\nthis is a string:\t" + str)
print("\nthis is an interpolation value = \(str)")
let const = "常量使用 let, 而不是 const!"
print("\n")
print(const)
https://docs.swift.org/swift-book/GuidedTour/GuidedTour.html
live demo
codepen & iframe template
<iframe
height="500"
style="width: 100%; border: 1px solid red; box-sizing: border-box;"
scrolling="no"
title="Swift print All In One"
src="https://www.runoob.com/try/runcode.php?filename=HelloWorld&type=swift"
frameborder="no"
loading="lazy"
allowtransparency="true"
allowfullscreen="true">
</iframe>
https://www.runoob.com/try/runcode.php?filename=HelloWorld&type=swift
refs
https://www.runoob.com/swift/swift-tutorial.html
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/16067481.html
未经授权禁止转载,违者必究!