1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | class Persion: def work( self ): print ( "努力上班" ) def play_game(s): print ( "玩游戏" ) def work2(s): print ( "好好工作,努力上班" ) Persion.play = play_game Persion.work = work2 p = Persion p.play() p.work() |
老师,这个为什么要删掉形参s,高琪老师打的时候不是有形参吗?
f01(x): b = ((x)) b.sort(= ) (b.sort(= )) (.join(b)) f01()
print(b.sort(reverse = True))为什么输出的结果是None