0
A
回答
8
請參閱the python docs on the data model。
你問的方法是:__sub__
,__mul__
,__xor__
,__or__
和__and__
以下是完整名單:
object.__add__(self, other)
object.__sub__(self, other)
object.__mul__(self, other)
object.__truediv__(self, other)
object.__floordiv__(self, other)
object.__mod__(self, other)
object.__divmod__(self, other)
object.__pow__(self, other[, modulo])
object.__lshift__(self, other)
object.__rshift__(self, other)
object.__and__(self, other)
object.__xor__(self, other)
object.__or__(self, other)
+0
謝謝!!!幫助我很多! (: – Jjang 2012-04-21 17:10:46
+5
@Jjang:然後請點擊左側的複選標記圖標接受此答案。 – ThiefMaster 2012-04-21 17:37:17
相關問題
- 1. 與index()相反嗎?
- 2. Firebase pop()與push()相反嗎?
- 3. Aptana svn:與commit相反嗎?
- 4. 是與urllib相反的python庫嗎?
- 5. XPath:與string()函數相反嗎?
- 6. 與HTML條件if語句相反嗎?
- 7. UNIX find:與-newer選項相反嗎?
- 8. 方法__add__
- 9. Php與Striptags相反
- 10. Python:與'datetime.date.isocalendar()'相反
- 11. 反相frexp與ldexp
- 12. JavaScript - 與toString()相反?
- 13. 顯式的UIViewAnimationOptionOverrideInheritedDuration相反嗎?
- 14. 函數與atoi()相反?
- 15. Parallel.For與循環相反
- 16. 與ABS功能相反
- 17. 需要與field__lte相反
- 18. awk與拆分相反
- 19. 與SQL IN()語句相反
- 20. Lodash是否與_.keys相反?
- 21. 與點擊功能相反
- 22. layout_weight與它應該相反
- 23. isItemChecked總是返回與onItemClickListener內部應該相反的值嗎?
- 24. checkExternalClick與我想要做的事情相反嗎?
- 25. 「同步訪問線程」與「同步共享對象」相反嗎?
- 26. Haskell中的函數與Data.Char中的ord函數相反嗎?
- 27. 標準庫與unicodedata.decomposition有相反之處嗎?
- 28. 與Ruby的CGI.parse方法完全相反嗎?
- 29. 與內存支持的文件相反嗎?
- 30. 與JSHint相反,Backbone.js「使用新的副作用」嗎?
您可以通過點擊它附近的綠色對號接受ThiefMaster的答案。 – 2012-04-23 17:41:25