Skip to content

Commit

Permalink
身份验证
Browse files Browse the repository at this point in the history
  • Loading branch information
CanisMinor-1037 committed Jul 25, 2024
1 parent 2c5343c commit 315372d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ch02/suits.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,16 @@
suits[0:2] = ['heart', 'diamond']
print(suits)

print(suits0)
print(suits0)

nest = list(suits)
nest[0] = suits
suits.insert(2, 'Joker')
print(nest)

nest[0].pop(2)
print(suits)

print(suits is nest[0])
print(suits is ['heart', 'diamond', 'spade', 'club'])
print(suits == ['heart', 'diamond', 'spade', 'club'])

0 comments on commit 315372d

Please sign in to comment.