示例#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)