Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. Python 开发
  4. Python3的矩阵乘法的好玩玩法

Python3的矩阵乘法的好玩玩法

Scheduled Pinned Locked Moved Python 开发
1 Posts 1 Posters 407 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • digitalsatoriD Offline
    digitalsatoriD Offline
    digitalsatori 管理员
    wrote on last edited by digitalsatori
    #1
    In [1]: class G:
       ...:     def __init__(self, s):
       ...:         self.s = s
       ...:     def __getattr__(self, t):
       ...:         return G(self.s + '.cn')
       ...:     def __rmatmul__(self, other):
       ...:         return other + '@' + self.s
       ...:
       ...: fun, games = '无脑者', G('愚蠢国度')
       ...: print([email protected])
       ...:
       ...:
    无脑者@愚蠢国度.cn
    

    【上海先安科技】(tony AT openerp.cn)

    1 Reply Last reply
    0

    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Tags
    • Popular
    • Users
    • Groups