コード例 #1
0
#!/usr/bin/env python
from potus import get_info

for i in range(1, 46):
    print('PRESIDENT {}:'.format(i))
    for field, value in get_info(i).items():
        print(field, value)
    print()

コード例 #2
0
#!/usr/bin/env python
import potus

potus.file_name = "...."

x = potus.get_info(2)

コード例 #3
0
#!/usr/bin/env python

import potus

pres = potus.get_info(1)
print(pres)
コード例 #4
0
#!/usr/bin/env python
from potus import get_info

for i in 42, 43, 45:
    result = get_info(i)
    print(result['first_name'], result['last_name'], result['dob'])