DevType
排行榜
练习题
关于
公告
常见问题
技巧
中文
登录
main.py
Terminal
$
Loading...
Python
UTF-8
Ln 1
Spaces: 4
Loading
.
.
.
Preparing your code challenge
SWIFT Lv.4 | DevType
Lv.4
Swift
属性观察者
1
2
3
4
5
6
7
8
9
10
11
12
13
14
c
l
a
s
s
T
e
m
p
e
r
a
t
u
r
e
{
↵
v
a
r
c
e
l
s
i
u
s
:
D
o
u
b
l
e
=
0
{
↵
w
i
l
l
S
e
t
{
↵
p
r
i
n
t
(
"
C
h
a
n
g
i
n
g
f
r
o
m
\
(
c
e
l
s
i
u
s
)
t
o
\
(
n
e
w
V
a
l
u
e
)
"
)
↵
}
↵
d
i
d
S
e
t
{
↵
p
r
i
n
t
(
"
C
h
a
n
g
e
d
b
y
\
(
c
e
l
s
i
u
s
-
o
l
d
V
a
l
u
e
)
d
e
g
r
e
e
s
"
)
↵
}
↵
}
↵
}
↵
↵
l
e
t
t
e
m
p
=
T
e
m
p
e
r
a
t
u
r
e
(
)
↵
t
e
m
p
.
c
e
l
s
i
u
s
=
2
5
.
0
↵
t
e
m
p
.
c
e
l
s
i
u
s
=
3
0
.
0
终端
$
▋
Swift
UTF-8
Ln 14
Spaces: 4
按任意键或点击开始按钮
开始
182 characters
提示:
按照显示的代码准确输入。使用
Tab
缩进,
Enter
换行。