Python question

Asked 2 years ago, Updated 2 years ago, 16 views

req.add_header('Cookie', 'PHPSESSID=%s' % SESSION)

if urllib2.urlopen(req).read().count("1") > 7:

I don't know the meaning of .count("1")>7 after the if statement

python

2022-09-22 11:02

1 Answers

If one of the contents obtained from the url is more than 7, it means true.


2022-09-22 11:02

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.