1
2
3
4
5
6
7
8
9
10
|
struct
Account
{
var
amount :
Double
= 0.0
//账户金额
owner :
String
=
""
//账户名
static
interestRate :
= 0.668
//利率
func
interestBy(amount :
) ->
{
return
interestRate * amount
}
}
|