-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpublication.py
More file actions
29 lines (22 loc) · 846 Bytes
/
publication.py
File metadata and controls
29 lines (22 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import json
class APub :
""" arnetminer publication """
pid = -1
tit = ''
cid = -1
cit = 0
def __init__(self, pid, tit, cid, cit):
self.pid = pid
self.tit = tit
self.cid = cid
self.cit = cit
def __str__(self):
return "<APub pid : %s, tit = %s, cid = %s, cit = %s>" %(self.pid,
self.tit,
self.cid,
self.cit)
def __repr__(self):
return "<APub pid : %s, tit = %s, cid = %s, cit = %s>" %(self.pid,
self.tit,
self.cid,
self.cit)