xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-03-28 15:46  xgqfrms  阅读(30)  评论(1编辑  收藏  举报