Guest User

Untitled

a guest
Jul 11th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. for m in movie:
  2. u = int(m['up'])
  3. d = int(m['down'])
  4. if d == 0:
  5. d = 1
  6.  
  7. # s is score
  8. s = d/(u+d)
  9. s = int(s*1000)
  10. s = 1000 - s
  11. s = (s//2)
  12. s = -(-s//100)
  13.  
  14. ★★★☆☆3 (14/10) 
  15. ★★★☆☆3 (43/33)
  16. ★★★☆☆3 (8/8)
  17. ★★★★☆4 (3/1)
  18. ★★☆☆☆2 (2/4)
  19. ☆☆☆☆☆0 (0/2)
  20. ★★★☆☆3 (3/3)
  21. ☆☆☆☆☆0 (0/1)
  22. ★★★☆☆3 (2/2)
  23. ★★★★☆4 (7/3)
  24. ★★★★☆4 (3/1)
  25. ★★★☆☆3 (4/4)
Add Comment
Please, Sign In to add comment