运行以下程序输出的结果是?( )
x=1 def demo(): global x x=2 print(x) demo() print(x)
2
1
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。