阅读背景:

Python:为什么这段代码失败了?将变量分配给for循环中的自身列表

来源:互联网 
a = 'hello'
b = None
c = None
for x in [a, b, c]:
    if isinstance(x, (basestring, dict, int, float)) or x is None:
        x = [x]
a
a = 'hello'
b = None
c = None
for x in [a, b, c



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: