Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Literals-String/Swift/literals-string-1.swift
Normal file
7
Task/Literals-String/Swift/literals-string-1.swift
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
let you = "You"
|
||||
let str1 = "\(you) can insert variables into strings."
|
||||
let str2 = "Swift also supports unicode in strings ı∫ƒ∂ß´™¡à"
|
||||
let str3 = "Swift also supports control characters \n\tLike this"
|
||||
let str4 = "'" // '
|
||||
let str5 = "\"" // "
|
||||
println(str3)
|
||||
16
Task/Literals-String/Swift/literals-string-2.swift
Normal file
16
Task/Literals-String/Swift/literals-string-2.swift
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
let author = "Author"
|
||||
let xml == """
|
||||
<?xml version="1.0"?>
|
||||
<catalog>
|
||||
<book id="bk101" empty="">
|
||||
<author>\(author)</author>
|
||||
<title>XML Developer's Guide</title>
|
||||
<genre>Computer</genre>
|
||||
<price>44.95</price>
|
||||
<publish_date>2000-10-01</publish_date>
|
||||
<description>An in-depth look at creating applications with XML.</description>
|
||||
</book>
|
||||
</catalog>
|
||||
"""
|
||||
|
||||
println(xml)
|
||||
Loading…
Add table
Add a link
Reference in a new issue