你說放 1000 個 Docker 應該就會用得上吧(
you need rust to compile rust compiler to compile rust (?
那麼第一代 Rust 編譯器一定不是用 Rust 寫的
本来是用 Ocaml 做前端,增量编写自身的编译器,还有 Servo 浏览器引擎
然后很神奇的是,自身的编译器和 Servo 都是很贴近 Rust 的各种改变
香港 - 倫敦 176ms
香港 - 法蘭克福 158ms
手機如果要銷毀,應該拿榔頭敲正面還是背面損傷比較大啊?
我剛剛把HITCON的反縮寫(?背成 HITCON in Taiwan(?
手機要清個資不是填零大概填個128次應該就差不多了嗎(?
我跟人資他們聊這件事,他們也覺得怪怪的
懷疑是有人碰到或者事熱漲冷縮
手機的確可以開 Server 啊,不過可能不能跑 apache
然後有時候廠商的設計不良,可能還很容易造成其他東西的損壞之類的
我是有點想實驗看看,空的手機裝Apach,裡投放index.html
大家連看看
如果會處理手機的話,或許手機當Server還是建叢集都不錯
Linux 沒有 root 權限的話只能用 1024 以上的 port 喔
真的,我家只有我用 Android 都覺得我被孤立
android能開http server早就已經是常識了
快
給你一個任務
用netcat寫http server
我大概還是只會 print ("Hello world")
ARM 應該算省電高效能為主吧,現在應該是稱霸手機市場了想要挑戰 Intel(!
Intel原本有想要做Android,但是跟MTK一樣出很多問題
若拿開發版,然後插隨身碟做OS與SFTP路徑,開發版的網路插孔直接插中華電信的固定IP ?
手機只能拼多CA、外觀設計、材質
硬體只要頂級,用起來大同小異
因為沒人用 ARM 單核吧,連 RPi 都是多核了
以後就和說話一樣自然的用Python就行了(#
不過在那之前邏輯要Python一點
不是啊,我也是很懒 Google 的人。
我只是说如果你不懂一个东西然后就对他产生害怕…… 我不知道能够说什么
>>> if content = 'print (content)' print ('Hello!') else ('It can not work.')
File "<stdin>", line 1
if content = 'print (content)' print ('Hello!') else ('It can not work.')
^
SyntaxError: invalid syntax
[Visual Studio Code - Code Editing. Redefined]
https://code.visualstudio.com/
Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and ...
[Download Visual Studio Code - Mac, Linux, Windows]
https://code.visualstudio.com/download
Visual Studio Code is free and available on your favorite platform - Linux, Mac OSX, and Windows. Download Visual Studio Code to experience a redefined ...
[為什麼我從Sublime Text 跳槽Visual Studio Code? - Hungys.blog()]
https://hungys.xyz/why-i-switched-from-sublime-to-vscode/
2017年1月26日 ... 2016 下半年,我認為時機已經成熟,所以開始依序把Python、C/C++ 的開發從Sublime 轉移到VS Code,而Golang 則是一開始就選用VS Code。
else ('It can not work.')
`
if content = 'print (content)'
print 'Hello!'
else ('It can not work')
content = test
contect = r4a2
if 'content' = 'contect':
print ('word')
else:
print ('nope')
»> C:\Users\Peter\Desktop\
Untitled-1.py File "<stdin>", line 1
C:\Users\Peter\Desktop\
Untitled-1.py ^
SyntaxError: unexpected character after line continuation character
content = 'test'
contect = 'r4a2'
if 'content' = 'contect':
print ("word")
else:
print ("nope")
»> C:\Users\Peter\Desktop\
Untitled-1.py File "<stdin>", line 1
C:\Users\Peter\Desktop\
Untitled-1.py ^
SyntaxError: unexpected character after line continuation character
import os
contoot = 'test'
contect = 'r4a2'
if contoot = contect :
print ("word")
else:
print ("nope")
os.system("pause")
File "<stdin>", line 1
C:\Users\Peter\Desktop\
Untitled-1.py ^
SyntaxError: unexpected character after line continuation character
C:\Users\Peter>python C:\Users\Peter\Desktop\
Untitled-1.py'python' 不是內部或外部命令、可執行的程式或批次檔。
C:\Users\Peter>py C:\Users\Peter\Desktop\
Untitled-1.py File "C:\Users\Peter\Desktop\
Untitled-1.py", line 3
if contoot = contect :
^
SyntaxError: invalid syntax
contoot = 'test'
contect = 'r4a2'
if contoot = contect :
print("word")
else:
print("nope")
import os
contoot = 'test'
contect = 'test'
if contoot == contect :
print("word")
else:
print("nope")
os.system("pause")
就像要學C要先看懂怎讓那東西Buffer Overflow(#
C:\Users\Peter>py C:\Users\Peter\Desktop\timesys.py
Traceback (most recent call last):
File "C:\Users\Peter\Desktop\timesys.py", line 3, in <module>
print ("今天是" + time.strftime("%Y 年 %m 月 %d 日"))
UnicodeEncodeError: 'locale' codec can't encode character '\u5e74' in position 3: Illegal byte sequence
好像他要的是把中文字串整個轉換成 Unicode 編碼
Traceback (most recent call last):
File "C:\Users\Peter\Desktop\
timesys.py", line 4, in <module>
print ("今天是" + time.strftime("%Y 年 %m 月 %d 日"))
UnicodeEncodeError: 'locale' codec can't encode character '\u5e74' in position 3: Illegal byte sequence
是說 ERC20 Tokens 是跟 Ethereum 的 Chain 共用的嗎?
File "C:\Users\Peter\Desktop\
timesys.py", line 4
print ("今天是" + time.strftime("%Y \u5e74 %m \u6708 %d \u65e5))
^
SyntaxError: EOL while scanning string literal
Traceback (most recent call last):
File "C:\Users\Peter\Desktop\
timesys.py", line 4, in <module>
print ("今天是" + time.strftime("%Y \u5e74 %m \u6708 %d \u65e5"))
UnicodeEncodeError: 'locale' codec can't encode character '\u5e74' in position 3: Illegal byte sequence
# coding: utf-8
import time
import os
print ("今天是" + time.strftime("%Y 年 %m 月 %d 日))
os.system ("pause")
# coding: utf-8
import locale
locale.setlocale(locale.LC_CTYPE, 'chinese')
import time
import os
print ("今天是" + time.strftime("%Y 年 %m 月 %d 日"))
os.system ("pause")
話說你最後那個 os.system ("pause") 是Windows only喔
上面 不知道為什麼手機的 location 搜尋爛掉了
那可以讓他像 batch 這樣嗎?
:a
set /p chose=請選擇:
if "%chose%"=="Y" goto a
的 :a & goto a
或是寫個 Binding 去接著 clrscr() 函數
os.system('cls' if
os.name == 'nt' else 'clear')
應該是 os.system(if
os.name =='nt' 'cls' else 'clear') 吧
-- 不然把 ncurses 的 Python 版本叫出來 --
if os.name == nt:
os.system('cls')
else:
os.system('clear')
我的想法是如果他按下 Y,則清除畫面之後 time()
if os.name == nt:
os.system('cls')
os.system('ping 0.0.0.0 -n 2 >nul')
time()
else:
os.system('clear')
os.system('sleep 2')
time()
@jimchen5209 認為 @byStarTW_001 的意思是: 不過我可能要重新想一下程式碼
while迴圈是只要那個式子變成false就會跳出去
for i in xrange(1, 20) 就好了吧?
# coding: utf-8
import locale
locale.setlocale(locale.LC_CTYPE, 'chinese')
import time
import os
count = 0
while 3>0:
print ("現在是 " + time.strftime("%Y 年 %m 月 %d 日 %H 時 %M 分 %S 秒"))
time.sleep (2)
if os.name == "nt":
os.system('cls')
else:
os.system('clear')
count = count+1
print ("結束")
print()
i = 10 # 設定控制變數
while i > 0:
# 迴圈工作區
print(i)
i -= 1 # 調整控制變數值
print()
C:\Users\Peter>py C:\Users\Peter\Desktop\timesys.py
File "C:\Users\Peter\Desktop\timesys.py", line 7
for count (1,20,1):
^
SyntaxError: invalid syntax
# coding: utf-8
import locale
locale.setlocale(locale.LC_CTYPE, 'chinese')
import time
import os
count = 0
for count (1,20,1):
print ("現在是 " + time.strftime("%Y 年 %m 月 %d 日 %H 時 %M 分 %S 秒"))
time.sleep (1)
if os.name == "nt":
os.system('cls')
else:
os.system('clear')
print ("結束")
原來是程式入門課程,我以為我在 YSITD 呢(?
print()
for i in range(10, 0, -1):
print(i)
print()
C:\Users\Peter>py C:\Users\Peter\Desktop\
timesys.py結束
打 code 千萬別著急
學習程式並不是要對我們交差
而是對你自己
你慢慢打慢慢了解
可是我發現這裡的 log 會被 Google 索引
# coding: utf-8
import locale
locale.setlocale(locale.LC_CTYPE, 'chinese')
import time
import os
for count in range(0, 20, 1):
print ("現在是 " + time.strftime("%Y 年 %m 月 %d 日 %H 時 %M 分 %S 秒"))
time.sleep (1)
if os.name == "nt":
os.system('cls')
else:
os.system('clear')
print ("結束")
會黑別人bot token的人怎麼可能沒注意到呢(?
用 python 写一个 API 检查 lisp 语法服务。
Lisp syntax checker as a service
或是写个 fizzbuzz as a service 的创业服务
要是那種一查,答案就在google搜尋第一項的,我就ban(?)
沒耐心查資料超過 30 秒的話,你可以準備放棄程式了
現在大家 Google 搜尋大概都只看第一頁吧😂😂
可是這其實好像是 Nexus 的問題,好像 Pixel 可以決定要什麼樣式
可能我 Nougat 是 3rd ROM 選 Pixel Launcher 吧
應該不是,那 ROM 用兩個多月了,這一兩天才突然不順
是有用msys1啦
可是compile的時候path順序要一直調
只是我都在用linux了,想不到有什麼狀況是要開Linux VM的阿
不,我是想知道到底一臺電腦可以背負幾台 VM,不是 Container
那不是是大寶貝嗎?如果只是小寶貝或許可以稍微貼近一般人使用
可是我同學買過 SSD 陣列,然後效能是笑能,最後他賣掉了(?
可是我不是很在意 IO,我只是想知道一臺電腦可以背負多少 VM 就是了
Hm...對誒,我沒仔細問他怎麽建立 SSD RAID 2k
當然穩定的話你可以放系統 RAM * 1.25 倍 那麼多的 VM
如果用 iSCSI 存 VM Files,然後網路是 GbE 呢?
我還蠻想要一個 bat 跟 python 的程式碼對照表 XD
:start
blablabla
goto start
»> def hello(a,b):
... return a+b*a/b**a
... hello(30,10)
File "<stdin>", line 3
hello(30,10)
^
SyntaxError: invalid syntax
可是很多compiler會compile的時候會用goto喔
»> def hello(a,b):
... return a+b*a/b**a
... ^Z
»> hello(3,3)
3.3333333333333335
try:
exit
except:
print ("failed")
基本上是,不久後的 Python2 只會有安全性更新
看不到未來,而且之後好像會轉成 Hcash,好複雜
print ("h"+"e"+"l"+"l"+"o"+" "+"w"+"o"+"r"+"l"+"d")
print ("h"+"e"+"l"+"l"+"o"+" "+"w"+"o"+"r"+"l"+"d")hello world
Python (py) 可以在沒安裝 Python 的電腦上執行嗎?
那可以讓 py 在沒安裝 python 的電腦上執行嗎
假包,install.bat類自動裝python,包特定版python然後弄local dep,還有cliff說的包exe
我雖然不反對“there are no stupid questions”的精神
可是...
是說
@seadog007 你與其買自己的 AS,還不如試看看怎麽自己發行 ERC20 Token(?
我覺得這裡可以定一個規定,問問題前必須要把你google過的關鍵字發出來,如果裡面就有答案就禁言個幾天(?
我覺得現有大多數會碰到的基礎問題在stackexchange應該找得到才是
-y Start Vim in easy mode, just like the executable was called "evim" or "eview". Makes Vim behave like a click-and-type editor.
所以過往是有段時間你挖 BTC 是可以獲利的嘍?你賺了多少 BTC 啊
我一直覺得 BTC 時辰快到了,而且漲的太誇張,所以我寧願看其他 Blockchain 上的貨幣也不玩 BTC(?
雖然 Cryptocurrency 是該以貨幣的角度來看啦,可是現實狀況下大家都把它當成投資工具
可是用 Coinbase 之類的服務沒辦法控制 Fee...
(lord gaben holy bgm echoes
有內部node吧
就像說叫你連他們wifi才交易那樣
對啊
可是這個spend的至少在內部先confirm了
所以… 我还是乖乖 eth 还是 filecoin
之前原本想要投 ICO 的,可是看了一下相關資料就收手了
就跟在bitcointalk上面的altcoin scam一樣
ICO 嗎?就賭一把啊,所以資料不夠完善的連看都不看
可是不是每個 ICO 都能順利吸金啊,所以還是要謹慎嘛...
可是如果你不是premine後的第一批,回酬就少很多了
碰過的人都知道
市場信心很重要嘛
不然你看之前的冰島事件
個人現在覺得 ERC20 Token 在 ICO 後在底下幾個事件會有大幅波動(不論漲跌):
上交易站、產品進度更新、獲得下一輪投資
歐歐歐,原來是貨幣觀點,抱歉抱歉
ICO 不是每個都能用貨幣觀點來看吧?
因為大多數人,包含我,還是把數位貨幣當投資啊,所以...
看下一次half block有多少miner會跟著stall
00000000000000000000000000000000~ffffffffffffffffffffffffffffffff
當中的md5會重複嗎
在你幸運地丟完9顆都沒重複後,你丟最後一顆沒重複的機率是多少?
你試試看找3個杯子跟4顆球,然後每個杯子不可放超過一顆球,你就知道位什麼一定會重複了?
感覺有好了解一點,但是我可能還是得花不少時間去理解他
你就print(rice(44, 66. 88, 22))
這樣 function 如果有回傳值就會放到 result 變數裡面
就print rice(44, 66, 88, 22)傳回的值阿
像 Harry Potter 那样让编程语言选使用者吧
def rice(a,b,c,d):
choose_option = input("請輸入 Go 製作你輸入的四個號碼的總和: ")
if choose_option == "Go":
print ("Answer is:")
return a+b+c+d
print(rice(44, 66, 88, 22))
print("很棒吧")
i = 0
while i<20:
print ("嗯哼摁哼")
i += 1
else:
print ("嗯哼摁哼 (被揍")
print("End")
你知道有一種東西叫做github,還有一種東西叫做pastebin
好,我會搬到 TG Source Code Group
brainfuck的.ㄅ是要印出那個cell的相對應ㄉ字元ㄇ
大部分語言都能做出brainfuck interpreter吧