n=0 def func(): global n print n n+=1 func() print n
本文标题:Python的UnboundLocalError: local
本文链接:https://www.haomeiwen.com/subject/qrpsqftx.html
网友评论