email_addresses = [
'[email protected]',
]
for email_address in email_addresses:
print email_address
#production=> [email protected]
email_addresses = [
'[email protected]'
]
for email_address in email_addresses:
print email_address
#production=> [email protected]
email_addresses = (
'[email protected]',
)
for email_address in email_addresses:
print email_address
#production=> [email protected]
email_addresses = (
'[email protected]'
)
for email_address in email_addresses:
print email_address
#production=>
t
e
s
t
@
g
m
a
i
l
.
c
o
m
Il est affiché caractère par caractère, probablement parce qu'il est considéré comme une chaîne de caractères.
email_addresses = (
'[email protected]',
'[email protected]'
)
for email_address in email_addresses:
print email_address
#production=> [email protected]
[email protected]
Quand j'ai changé ce qui était dans l'état de 5 à 4, c'était un bug, donc j'étais curieux et j'ai enquêté.
Cela ressemble à ça.
foo = "abc"
bar = ("abc")
foo == bar
#↑ True
Recommended Posts