是
Observable<Array<Example>>
与
不同Observable<Example[]>
用于打字稿?我使用RxJS发出一个可以发出Example对象数组的observable。
答案 0 :(得分:0)
它是一样的。 Error in lines 2-2
Traceback (most recent call last):
File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1013, in execute
exec compile(block+'\n', '', 'single') in namespace, locals
File "", line 1, in <module>
File "", line 5, in SolovayStrassen
File "/ext/sage/sage-8.1/local/lib/python2.7/site-packages/sage/arith/misc.py", line 1939, in power_mod
while n&1 == 0:
TypeError: unsupported operand type(s) for &: 'sage.rings.rational.Rational' and 'int'
和 p = power_mod(a,(n-1)/2,n) #uses the power mod function
属于同一类型。