ackage test39
object pub {
implicit class XXXXX(d:Int){
def ! :Int={
println("阶乘函数被调用",d)
var rs=1
for(i<-1 to d){
rs*=i
}
rs
}
}
}
ackage test39
object pub {
implicit class XXXXX(d:Int){
def ! :Int={
println("阶乘函数被调用",d)
var rs=1
for(i<-1 to d){
rs*=i
}
rs
}
}
}
468
148
218

被折叠的 条评论
为什么被折叠?