예제 #1
0
파일: atom.py 프로젝트: ellisonbg/qsnake
    def symbol(self):
        """
        Returns the symbol of the atom.

        Example:
        >>> Atom("B").symbol
        'B'
        """
        return number2symbol(self._Z)
예제 #2
0
파일: atom.py 프로젝트: ellisonbg/qsnake
 def __str__(self):
     return "<%s: %s>" % (number2symbol(self._Z), self._position)