那我就無解惹,我看我 iPhone 跟 Android 都沒這個問題
你可能最近日文的東西看太多了
Google 會根據你最近常用的翻譯去做推薦.......
我上次連續一個月都推薦我翻譯西班牙文
不過如果是這樣或許就解釋得通了,上個月整個月我都在看日語的 apex 直撥啊
有沒有地方能買大學用的參考書......
老師上課推的那本書好難找
halliday and resnick's principles of physics 11th
1*(1*1)+1
+
2*(2*2)+2
+
3*(3*3)+3
+
然後算到100*(100*100)+100
js
[...Array(100).keys()].map(x => x + 1).map((x) => x*(x*x)+x).reduce((a,b)=>a+b)
然後你要輸出
1*(1*1)+1
+
2*(2*2)+2
+
......
100*(100*100)+100
================
(答案)
answer = 0
for i in range(1, 101): # 1 <= i < 101
answer += i ** 3 + 3
i*i*i
你看星星出現兩次 i出現三次
所以是 i**3
answer = 0
for i in range (1,101) :
print(str(i)+ '*'+'('+ str(i) + '*' + str(i) + ')' + '+' + str(i) )
answer += i+(i*i)+i
if i<100 :
print("+")
else :
print("==============")
print("answer="+str(answer))
answer = 0
for i in range (1,101) :
print(str(i)+ '*'+'('+ str(i) + '*' + str(i) + ')' + '+' + str(i) )
answer += i*(i*i)+i
if i<100 :
print("+")
else :
print("==============")
print("answer="+str(answer))
我猜
new Array(i).fill(0).map((_, i) => i + 1)
?
const makeArray = (from, to) => Array.from({length: to - from + 1}, (_, i) => i + from)
寫csharp的時候如果希望寫出來的coding style是
if (Conditon) {
Statments
}
在VS的設定要如何修改
我只是想表達 .fill 就算是 null 之類的空值
.fill([]) 後填充的陣列,reference 都會一樣
function a () {}
a.prototype.data = []
a.prototype.add = function (v) {
this.data.push(v)
}
a.prototype.get = function () {
console.log(this.data)
}請問哪裡不對(?
a.prototype.get = function () {
return [...this.data]
}
> var v = new a, v2 = new a
> v.add('str')
> v2.add('str')
> v.get()
Array [ "str", "str" ]
如果是 es3 的話,你應該寫在 constructor 裡
或者是直接用 ES6 的 class 語法,然後用 Babel 轉換語法。
class a {
data = [];
}
是說你的 constructor 是不是少了 ()
不過,我突然想到....
我的程式是放在內網的電腦上
然後我被斷網,我是要怎麼發通知給我的手機或是 Mail
好像沒用了.....畢竟我需要的通知就是知道,我有沒有被斷網,但斷網我也沒辦法發通知給外網的任何裝置或是軟體
因為我要跟 GitHub 拉 code
就像昨天說的,一早流量就沒了
想在系統發出管制我的 IP 之後,發 Mail 通知告訴我
DHCP 相較 app 這些功能還來得冷門
我覺得沒把 DHCP 放進來很合理
反正你還是可以操作網頁介面呀w
我最近打算買個有 intc amd nvda csco jnpr anet 的科技基金(
最近看了兩隻基金 持股量最大的 都是 aapl 和 nvda...
(剛好去看apple store 看到updating
是說 MacBook 如果要加回那些 port (SD 卡還有 USB-A 的樣子)