Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 27th, 2017
60
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
var optionalName: String? = "Tom"
//使用兩個問號來解包,如果此optional變數有值,則解包後給予,若沒值,則使用??右邊的值
var name = optionalName ?? "請輸入名稱"
print(name) //Tom
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ API Flaw Money Method
CSS | 25 min ago | 1.04 KB
⭐ Exploit Documentation ⭐
CSS | 25 min ago | 1.04 KB
This month smells like money
CSS | 26 min ago | 1.04 KB
libJSON
Lua | 55 min ago | 69.33 KB
CE Hotkeys Manager
Lua | 1 hour ago | 5.36 KB
updateStructFromMonoClass
Lua | 1 hour ago | 4.92 KB
TableCleaner
Lua | 1 hour ago | 3.99 KB
Print table to LUA console
Lua | 1 hour ago | 2.70 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!