IDLE与pycharm执行相同代码结果却不同,原因分析

最近在熟悉Python的class类的时候,无意中发现同样的代码,在pycharm和IDLE中结果不同,闲话少说先上代码: 1 class aa(): 2 def __init__(self,name): 3 print("my name is %s" % name) 4 def __del__(s
posted @ 2019-07-19 14:50  平行时空的旅者  阅读(1867)  评论(0编辑  收藏  举报