转换为字符串
基本类型 / 布尔类型
从字符串转换
转换为字符串
获取值
逻辑运算
bool
sunIsStar =
true
;
NSString
*str = sunIsStar ?
@"true"
:
@"false"
;
//str is "true"
语言
Python
C
C++
Java
C#
JavaScript
R
Rust
Golang
Delphi
PHP
Ruby
Swift
Kotlin
Lua
TypeScript
Clojure
Bash