[[DA series - Learn Python with Steem]](https://steemit.com/da-learnpythonwithsteem/@deanliu/da-series-learn-python-with-steem-00-coding) 是DA(@deanliu & @antonsteemit)關於「從Python程式語言實做Steem區塊鏈的入門」的系列,歡迎趕緊入列學習! 前情提要:[[DA series - Learn Python with Steem #01] 安裝Python、文字編輯器與哈囉!](https://steemit.com/da-learnpythonwithsteem/@deanliu/da-series-learn-python-with-steem-01-python) https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmbeN1PpqQC2JE5HbpXatb3apUfFhe68fPLctT95FiiRHq/cover.png 第#02堂課,我們要從根基開始打底囉:先來學學 **變數與資料型態** 吧! ## Python的變數 今天我們要來介紹在程式語言裡面,一個非常基本也重要的的元素:**變數**。在程式的運行過程中,變數是一個被操作的主體。我們會利用變數儲存不一樣的資訊,並且彼此交互運算。 例如我們要寫一個程式計算自己的薪水,我們用變數`work_hour`來紀錄我們今天工作了多久,用`dollar_per_hour` 紀錄了一小時的薪水。接著下一步我們透過數學的乘法運算(*)來成功算出一天的薪水,並把它的值存在`salary_per_day`這個變數裡面。  注:本篇教學的程式碼可至[GitHub/tutorial_2.py](https://github.com/antoncoding/Python-x-Steem-tutorial/blob/master/tutorial_2.py)中參考或下載。 在上面的語法中,`=`的作用就是「賦值」,其實跟小時候寫二元一次方程式x=1, y=2是一樣的。但是程式中我們如果都只使用x, y這種東西當變數名稱的話,我們很快就會忘記他代表的意義了,所以都會在命名上稍微花一點心思,訂一個看了一目了然的名字。 我把這個檔案存檔為`example1_variable.py`,一樣利用command line執行之後就會顯示我們一天的工錢:110塊。 得到這個`salary_per_day`之後,我們還可以把他拿來做各種事。例如算一週薪水、一個月的薪水、一年的薪水等等。  執行結果: ``` 550 2200 26400 ``` 變數的好處還有,寫好這段程式之後,我們只要在程式中改變任何一個變數的值(例如把dollar_per_hour換成10),就可以算出完全不同的結果。這樣我們就可以輕鬆的比較做不同工作,一年賺得錢會差多少了xD  執行結果 `24000`。因此知道每個小時多領一塊錢是多麼重要的了吧! ## 資料型態 在程式語言中,不同變數又會有不同的資料型態(Type),例如有些「年齡是正整數」、「名字是文字字串」等等。這是為了讓程式對於你存在變數裡的資訊有所了解,以便做出正確的運算。 頭昏眼花了嗎?沒關係,看一些幾本例子就會豁然開朗了。  這裡我宣告了`my_name`這個變數是一個字串(用'' 或是""括號起來),來儲存Anton這個名字。 `my_age`就跟剛剛的薪水一樣,是個未來可能要那來做加減運算的「數字」。 第三個`is_married`就比較特別了,是一種叫做布林值(Boolean Algebra)的型態,此類資料只有兩種狀態,即是真或假、True or False。這個`True of False`在通常被拿來做判斷用,這個在未來我們學判斷式跟迴圈的時候會特別重要。 現在我們用不同種類的資料來紀錄訊息了,但為什麼要這麼做呢?因為不同種類的資料在一般情況下是不能放在一起運算的。而不同的資料型態也被python定義了不同的運算規則。 例如,我們改變程式碼如下:  我們分別來看看三種資料型態經過**乘2**之後會變什麼。會發現執行結果為: ``` AntonAnton 44 0 ``` 在python的定義中,字串乘以二把字串重複兩次,所以`'Anton'*2 = 'AntonAnton'`。 第二個比較簡單理解,數字的乘法跟我們想像也是一樣的。22 * 2 = 44 。 但最後一個又很奇怪了。原來python在遇到把`True or False`拿來做數學運算時,會把他們視為`1` and `0`。所以這裡`False`*2 被當成了`0*2 = 0`,所以output就變成0了。 所以我們可以看出,有些奇怪屬性做奇怪運算會有難以預期的結果,因此在設計程式時應該很清楚每個變數的屬性、意義,才能避免這些可能讓程式壞掉的地方。這也讓我們看出不同變數種類存在的必要性,因為彼此差異頗大,要完成一項任務往往需要這些不同元素互相幫忙。 下一篇介紹判斷式的介紹中,大家應該就可以有更深刻的體會了。 我們下篇文章再見囉~下課!  <sub>*image - pixabay*</sub>
author | deanliu |
---|---|
permlink | da-series-learn-python-with-steem-02 |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem","python","steem","cn-programming","cn"],"users":["deanliu","antonsteemit"],"image":["https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmbeN1PpqQC2JE5HbpXatb3apUfFhe68fPLctT95FiiRHq/cover.png","https://cdn.steemitimages.com/DQmb9JQXc8EvF5K1wwW9opCPRdy9AAS1WqgecYbw9ADHygA/image.png","https://cdn.steemitimages.com/DQmRNt2L3ir5w5wVsSibNdhULuKxAS19tLMNorv1cEr4RDA/image.png","https://cdn.steemitimages.com/DQmZotBjzMzyksqZS5MD73STBHx72biPPv9Cgn14EgYwMyE/image.png","https://cdn.steemitimages.com/DQmZ2yJqgizQvin6xM1ZoCFjfB1Puu8cty14cHwUWZyJ43C/image.png","https://cdn.steemitimages.com/DQmassWkkwqaSNfDrxKKfsrVqyndX7wekLk2rTNfK2oT7Lk/image.png","https://cdn.steemitimages.com/DQmbTcEoAB7HRTxy11a1eDN8vREiGqxEMd7P3jJ3TGvGSTv/class-377117_1280.jpg"],"links":["https://steemit.com/da-learnpythonwithsteem/@deanliu/da-series-learn-python-with-steem-00-coding","https://steemit.com/da-learnpythonwithsteem/@deanliu/da-series-learn-python-with-steem-01-python","https://github.com/antoncoding/Python-x-Steem-tutorial/blob/master/tutorial_2.py"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-07-27 05:15:54 |
last_update | 2018-07-30 02:29:06 |
depth | 0 |
children | 23 |
last_payout | 2018-08-03 05:15:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 28.633 HBD |
curator_payout_value | 5.060 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,840 |
author_reputation | 3,091,849,888,189,995 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,118,516 |
net_rshares | 18,292,620,261,925 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
abit | 0 | 245,418,871,695 | 100% | ||
adm | 0 | 5,412,426,599,378 | 30% | ||
jademont | 0 | 30,154,278,420 | 10% | ||
coinbitgold | 0 | 47,937,886,728 | 80% | ||
wongshiying | 0 | 140,955,930 | 100% | ||
mark-waser | 0 | 24,674,390,936 | 25% | ||
blockchainbilly | 0 | 20,313,652,099 | 50% | ||
ubg | 0 | 299,344,631 | 1% | ||
deanliu | 0 | 1,400,762,985,488 | 100% | ||
joythewanderer | 0 | 186,586,651,060 | 50% | ||
daynewright | 0 | 18,712,137,483 | 65% | ||
team-leibniz | 0 | 54,811,189,332 | 40% | ||
ace108 | 0 | 329,931,485,368 | 25% | ||
laoyao | 0 | 34,790,363,295 | 100% | ||
somebody | 0 | 1,289,601,093,408 | 100% | ||
midnightoil | 0 | 124,792,679,585 | 100% | ||
xiaohui | 0 | 700,785,827,803 | 100% | ||
oflyhigh | 0 | 2,451,239,281,375 | 100% | ||
xiaokongcom | 0 | 1,013,062,138 | 100% | ||
yulan | 0 | 14,686,863,709 | 100% | ||
rivalhw | 0 | 1,524,790,068,748 | 100% | ||
chinadaily | 0 | 215,419,630,370 | 100% | ||
helene | 0 | 791,258,034,387 | 100% | ||
ethansteem | 0 | 194,336,246,709 | 100% | ||
davidjkelley | 0 | 1,235,751,512 | 25% | ||
digital-wisdom | 0 | 13,555,418,142 | 25% | ||
ethical-ai | 0 | 4,465,995,119 | 25% | ||
jwaser | 0 | 5,201,777,972 | 25% | ||
profitgenerator | 0 | 51,103,995 | 100% | ||
damarth | 0 | 721,207,416 | 3% | ||
justyy | 0 | 92,275,000,280 | 6% | ||
anomaly | 0 | 241,575,070 | 1% | ||
ellepdub | 0 | 389,922,177 | 25% | ||
rynow | 0 | 11,246,021,675 | 2% | ||
herpetologyguy | 0 | 45,094,419,058 | 25% | ||
strong-ai | 0 | 3,794,048,352 | 25% | ||
luneknight | 0 | 358,702,614 | 100% | ||
lalala | 0 | 121,015,496,290 | 100% | ||
devilwsy | 0 | 2,208,361,770 | 100% | ||
janiceting | 0 | 2,205,961,423 | 100% | ||
lydiachan | 0 | 25,885,211,172 | 100% | ||
technoprogressiv | 0 | 2,876,796,216 | 25% | ||
blackbunny | 0 | 105,033,985,105 | 100% | ||
lingfei | 0 | 63,941,553,549 | 100% | ||
yyyy | 0 | 447,909,706 | 100% | ||
alexis555 | 0 | 1,271,074,880,731 | 18% | ||
melip | 0 | 45,042,918,164 | 25% | ||
wylo | 0 | 609,881,658 | 100% | ||
cryptoted | 0 | 169,279,984 | 100% | ||
jkkim | 0 | 76,723,970 | 10% | ||
nanosesame | 0 | 152,576,232,747 | 100% | ||
victorier | 0 | 87,849,891,649 | 100% | ||
exec | 0 | 83,462,538,603 | 100% | ||
eval | 0 | 788,916,318 | 100% | ||
aaronli | 0 | 23,217,087,423 | 50% | ||
that1consultant | 0 | 299,329,858 | 100% | ||
sanzo | 0 | 357,429,721 | 100% | ||
sweetieprincess | 0 | 31,139,793,747 | 50% | ||
travelgirl | 0 | 50,287,478,352 | 42% | ||
zeekcryptominer | 0 | 310,473,235 | 100% | ||
catwomanteresa | 0 | 44,828,597,127 | 40% | ||
wanderwithtwo | 0 | 23,080,217,017 | 100% | ||
liangfengyouren | 0 | 1,723,801,054 | 50% | ||
idx | 0 | 16,972,347,527 | 100% | ||
mangoanddaddy | 0 | 1,764,506,145 | 80% | ||
marcoharley1995 | 0 | 609,061,897 | 100% | ||
fr3eze | 0 | 72,924,130,871 | 50% | ||
tvb | 0 | 38,972,726,511 | 50% | ||
beautypics | 0 | 72,451,832,933 | 100% | ||
skenan | 0 | 93,445,041,634 | 50% | ||
jessie901220 | 0 | 17,690,388,427 | 100% | ||
davidke20 | 0 | 1,754,277,799 | 10% | ||
ms8988 | 0 | 602,448,519 | 100% | ||
kettleandseagull | 0 | 9,201,630,261 | 100% | ||
bobdos | 0 | 246,458,566,755 | 100% | ||
lindalex | 0 | 213,672,227 | 50% | ||
winniex | 0 | 5,060,557,036 | 10% | ||
love-peace | 0 | 1,368,681,683 | 100% | ||
kimxinfo | 0 | 8,861,809,483 | 100% | ||
windowglass | 0 | 16,662,258,375 | 50% | ||
cnbuddy | 0 | 4,279,517,784 | 0.1% | ||
chann | 0 | 4,980,063,670 | 20% | ||
santiagocazorla | 0 | 611,934,887 | 100% | ||
taos | 0 | 195,013,231 | 50% | ||
lebin | 0 | 22,262,759,117 | 5% | ||
itchyfeetdonica | 0 | 14,188,237,688 | 100% | ||
coindzs | 0 | 159,881,178 | 100% | ||
decayboy | 0 | 396,064,815 | 100% | ||
cathvanlael | 0 | 131,030,006 | 100% | ||
matthewguo | 0 | 435,868,672 | 100% | ||
comingback | 0 | 256,025,712 | 12% | ||
yjcps | 0 | 1,897,067,251 | 100% | ||
btccurrency1 | 0 | 54,738,143 | 100% | ||
ethanlee | 0 | 11,190,486,048 | 100% | ||
eondas | 0 | 458,430,393 | 100% | ||
liuzg | 0 | 294,654,552 | 100% | ||
honoru | 0 | 550,496,039 | 50% | ||
lzg | 0 | 252,485,396 | 50% | ||
fishlucy | 0 | 24,528,293,270 | 50% | ||
pgr | 0 | 219,924,636 | 25% | ||
china-mobile | 0 | 550,319,762 | 100% | ||
xiaoyuanwmm | 0 | 231,121,701 | 100% | ||
ybeyond | 0 | 124,111,769 | 100% | ||
team-cn | 0 | 134,678,431,777 | 100% | ||
weitz | 0 | 257,134,952 | 50% | ||
tecire | 0 | 606,678,485 | 100% | ||
jerseymikes | 0 | 606,270,868 | 100% | ||
coder-bts | 0 | 4,110,539,673 | 35% | ||
chick-fil-a | 0 | 608,182,913 | 100% | ||
redlobster | 0 | 610,799,833 | 100% | ||
fiveguys | 0 | 608,285,680 | 100% | ||
marcoy2j | 0 | 269,096,966 | 50% | ||
yuwen | 0 | 439,477,787 | 100% | ||
yingyu | 0 | 439,849,548 | 100% | ||
tiffany4ever | 0 | 128,532,122 | 50% | ||
dealmoon | 0 | 609,296,119 | 100% | ||
moonbbs | 0 | 609,186,117 | 100% | ||
bonefish | 0 | 609,102,486 | 100% | ||
chilis | 0 | 609,141,157 | 100% | ||
olive-garden | 0 | 609,102,486 | 100% | ||
zhuanzhibufu | 0 | 429,359,727 | 100% | ||
shine.wong | 0 | 170,673,292 | 100% | ||
shuxuan | 0 | 440,153,523 | 100% | ||
xiaowucw | 0 | 449,293,490 | 100% | ||
menshealthblog | 0 | 493,532,857 | 100% | ||
new-voices | 0 | 611,895,605 | 100% | ||
nozuonodie | 0 | 611,201,023 | 100% | ||
yamibuy | 0 | 611,201,023 | 100% | ||
zhuxi | 0 | 433,777,668 | 100% | ||
jidgabol | 0 | 149,484,920 | 100% | ||
bunnymandy | 0 | 180,170,585 | 50% | ||
miguelalar | 0 | 550,275,612 | 100% | ||
teamcn-weekly | 0 | 610,526,137 | 100% | ||
teamcn-news | 0 | 610,526,137 | 100% | ||
roy-rogers | 0 | 610,526,137 | 100% | ||
wenxuecity | 0 | 610,526,137 | 100% | ||
huaren | 0 | 610,529,467 | 100% | ||
mitbbs | 0 | 610,529,467 | 100% | ||
teamcn | 0 | 610,526,137 | 100% | ||
cn-health | 0 | 609,781,973 | 100% | ||
cn-doctors | 0 | 609,781,973 | 100% | ||
wongmanman | 0 | 278,245,370 | 50% | ||
kissfirer | 0 | 526,205,006 | 100% | ||
lkvictor2005 | 0 | 7,494,695,841 | 100% |
為什麼我當年學的是C++
author | aaronli |
---|---|
permlink | re-deanliu-da-series-learn-python-with-steem-02-20180727t074545976z |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem"],"app":"steemit/0.1"} |
created | 2018-07-27 07:45:45 |
last_update | 2018-07-27 07:45:45 |
depth | 1 |
children | 1 |
last_payout | 2018-08-03 07:45:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.018 HBD |
curator_payout_value | 0.006 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 12 |
author_reputation | 351,839,128,609,435 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,129,454 |
net_rshares | 14,031,017,980 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
antonsteemit | 0 | 14,031,017,980 | 100% |
成績是C的都是去學C++,已經給你跳兩級了。
author | deanliu |
---|---|
permlink | re-aaronli-re-deanliu-da-series-learn-python-with-steem-02-20180728t081341078z |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem"],"app":"steemit/0.1"} |
created | 2018-07-28 08:13:39 |
last_update | 2018-07-28 08:13:39 |
depth | 2 |
children | 0 |
last_payout | 2018-08-04 08:13:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 22 |
author_reputation | 3,091,849,888,189,995 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,252,283 |
net_rshares | 0 |
**WARNING** - The message you received from @dulborah is a **CONFIRMED SCAM**! **DO NOT FOLLOW** any instruction and **DO NOT CLICK** on any link in the comment! For more information about this scam, read this post: https://steemit.com/steemit/@arcange/phishing-site-reported-steem-link-premium https://steemit.com/steemit/@arcange/anti-phishing-war-the-crooks-continue-their-bashing-campaign If you find my work to protect you and the community valuable, please consider to upvote this warning or to [vote for my witness](https://steemit.com/~witnesses).
author | arcange |
---|---|
permlink | re-da-series-learn-python-with-steem-02-20180727t102215000z |
category | da-learnpythonwithsteem |
json_metadata | {"image":["http://i.cubeupload.com/d1Dr28.png"]} |
created | 2018-07-27 08:22:12 |
last_update | 2018-07-27 08:22:12 |
depth | 1 |
children | 0 |
last_payout | 2018-08-03 08:22:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 564 |
author_reputation | 1,146,622,708,341,708 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,132,295 |
net_rshares | 0 |
👍👍👍👍👍👍👍👍💕
author | beautypics |
---|---|
permlink | re-deanliu-da-series-learn-python-with-steem-02-20180727t060112858z |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem"],"app":"steemit/0.1"} |
created | 2018-07-27 06:00:45 |
last_update | 2018-07-27 06:00:45 |
depth | 1 |
children | 0 |
last_payout | 2018-08-03 06:00:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 9 |
author_reputation | 10,703,556,924,562 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,121,852 |
net_rshares | 0 |
Get Automated DAILY upvotes! FREE steem.link/more Get 0.1 Free Steem Just To Join
author | dulborah |
---|---|
permlink | re-deanliu-da-series-learn-python-with-steem-02-20180727t052026127z |
category | da-learnpythonwithsteem |
json_metadata | {} |
created | 2018-07-27 05:20:24 |
last_update | 2018-07-27 05:20:24 |
depth | 1 |
children | 0 |
last_payout | 2018-08-03 05:20:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 89 |
author_reputation | -600,108,957,082 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,118,833 |
net_rshares | 0 |
SOOOOOOO SALLY CAN WAIT!!!!!!!!!!!!!
author | gamingmemes |
---|---|
permlink | re-da-series-learn-python-with-steem-02-20180727t051655 |
category | da-learnpythonwithsteem |
json_metadata | "" |
created | 2018-07-27 05:16:57 |
last_update | 2018-07-27 05:16:57 |
depth | 1 |
children | 0 |
last_payout | 2018-08-03 05:16:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 37 |
author_reputation | -355,226,318,307 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,118,581 |
net_rshares | 0 |
学习了,拿好小板凳,做好笔记。^_^
author | justyy |
---|---|
permlink | re-deanliu-da-series-learn-python-with-steem-02-20180727t075815631z |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem"],"app":"steemit/0.1"} |
created | 2018-07-27 07:59:03 |
last_update | 2018-07-27 07:59:03 |
depth | 1 |
children | 1 |
last_payout | 2018-08-03 07:59:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.027 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 18 |
author_reputation | 280,616,224,641,976 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,130,508 |
net_rshares | 15,669,493,020 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
happyukgo | 0 | 397,957,226 | 20% | ||
superbing | 0 | 2,758,471,982 | 20% | ||
dailyfortune | 0 | 60,819,210 | 20% | ||
dailystats | 0 | 5,195,457,504 | 20% | ||
dailychina | 0 | 3,529,098,902 | 20% | ||
turtlegraphics | 0 | 1,908,276,480 | 20% | ||
witnesstools | 0 | 1,819,411,716 | 20% |
發現代碼大神們都喜歡裝小學生,LOL!
author | deanliu |
---|---|
permlink | re-justyy-re-deanliu-da-series-learn-python-with-steem-02-20180728t081203138z |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem"],"app":"steemit/0.1"} |
created | 2018-07-28 08:12:00 |
last_update | 2018-07-28 08:12:00 |
depth | 2 |
children | 0 |
last_payout | 2018-08-04 08:12:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 19 |
author_reputation | 3,091,849,888,189,995 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,252,141 |
net_rshares | 0 |

author | kimxinfo |
---|---|
permlink | re-deanliu-da-series-learn-python-with-steem-02-20180727t082507568z |
category | da-learnpythonwithsteem |
json_metadata | {"community":"busy","app":"busy/2.5.3","format":"markdown","tags":["da-learnpythonwithsteem"],"users":[],"links":[],"image":["https://ipfs.busy.org/ipfs/QmRJxwCbS5j8ckLYhTpV8p17BwxfJ8TdE6C7i7dN3Urn9u"]} |
created | 2018-07-27 08:25:06 |
last_update | 2018-07-27 08:25:06 |
depth | 1 |
children | 3 |
last_payout | 2018-08-03 08:25:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.124 HBD |
curator_payout_value | 0.039 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 86 |
author_reputation | 1,748,728,029,640 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,132,477 |
net_rshares | 89,695,682,834 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
deanliu | 0 | 75,070,759,331 | 5% | ||
antonsteemit | 0 | 14,624,923,503 | 100% |
推好學生!
author | antonsteemit |
---|---|
permlink | re-kimxinfo-re-deanliu-da-series-learn-python-with-steem-02-20180727t130302612z |
category | da-learnpythonwithsteem |
json_metadata | {"community":"busy","app":"busy/2.5.3","format":"markdown","tags":["da-learnpythonwithsteem"],"users":[],"links":[],"image":[]} |
created | 2018-07-27 13:03:06 |
last_update | 2018-07-27 13:03:06 |
depth | 2 |
children | 0 |
last_payout | 2018-08-03 13:03:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.034 HBD |
curator_payout_value | 0.010 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 5 |
author_reputation | 7,534,465,964,895 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,156,598 |
net_rshares | 24,870,298,189 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kimxinfo | 0 | 9,231,051,545 | 100% | ||
antonsteemit | 0 | 15,639,246,644 | 100% |
太多bug了。
author | deanliu |
---|---|
permlink | re-kimxinfo-re-deanliu-da-series-learn-python-with-steem-02-20180728t081452083z |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem"],"app":"steemit/0.1"} |
created | 2018-07-28 08:14:48 |
last_update | 2018-07-28 08:14:48 |
depth | 2 |
children | 1 |
last_payout | 2018-08-04 08:14:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 7 |
author_reputation | 3,091,849,888,189,995 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,252,382 |
net_rshares | 9,231,051,545 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kimxinfo | 0 | 9,231,051,545 | 100% |
果然是有天份丫
author | kimxinfo |
---|---|
permlink | re-deanliu-re-kimxinfo-re-deanliu-da-series-learn-python-with-steem-02-20180728t122457405z |
category | da-learnpythonwithsteem |
json_metadata | {"community":"busy","app":"busy/2.5.3","format":"markdown","tags":["da-learnpythonwithsteem"],"users":[],"links":[],"image":[]} |
created | 2018-07-28 12:24:54 |
last_update | 2018-07-28 12:24:54 |
depth | 3 |
children | 0 |
last_payout | 2018-08-04 12:24:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 7 |
author_reputation | 1,748,728,029,640 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,272,219 |
net_rshares | 0 |
果然進步了,簡化了,方便了,這麽快就有第二堂,看來可以一口氣學下來,期待🤓🤓
author | kona |
---|---|
permlink | re-deanliu-da-series-learn-python-with-steem-02-20180727t053217724z |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem"],"app":"steemit/0.1"} |
created | 2018-07-27 05:32:18 |
last_update | 2018-07-27 05:32:18 |
depth | 1 |
children | 1 |
last_payout | 2018-08-03 05:32:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 38 |
author_reputation | 39,758,138,507,499 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,119,747 |
net_rshares | 0 |
週末休息一下,讓我兒發個燒。>_<
author | deanliu |
---|---|
permlink | re-kona-re-deanliu-da-series-learn-python-with-steem-02-20180728t081412632z |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem"],"app":"steemit/0.1"} |
created | 2018-07-28 08:14:09 |
last_update | 2018-07-28 08:14:09 |
depth | 2 |
children | 0 |
last_payout | 2018-08-04 08:14:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 17 |
author_reputation | 3,091,849,888,189,995 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,252,326 |
net_rshares | 0 |
这比c/c++简单多了 Posted using [Partiko Android](https://play.google.com/store/apps/details?id=io.partiko.android)
author | liuzg |
---|---|
permlink | liuzg-re-deanliu-da-series-learn-python-with-steem-02-20180727t052128162z |
category | da-learnpythonwithsteem |
json_metadata | {"app":"partiko"} |
created | 2018-07-27 05:21:27 |
last_update | 2018-07-27 05:21:27 |
depth | 1 |
children | 1 |
last_payout | 2018-08-03 05:21:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 109 |
author_reputation | 20,078,417,529,815 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,118,907 |
net_rshares | 0 |
真的阿,C++我不敢教,太複雜了。。。 Python真是程式界的救星
author | antonsteemit |
---|---|
permlink | re-liuzg-liuzg-re-deanliu-da-series-learn-python-with-steem-02-20180727t125908612z |
category | da-learnpythonwithsteem |
json_metadata | {"community":"busy","app":"busy/2.5.3","format":"markdown","tags":["da-learnpythonwithsteem"],"users":[],"links":[],"image":[]} |
created | 2018-07-27 12:59:12 |
last_update | 2018-07-27 12:59:12 |
depth | 2 |
children | 0 |
last_payout | 2018-08-03 12:59:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 34 |
author_reputation | 7,534,465,964,895 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,156,126 |
net_rshares | 0 |
今天没更新呀! Posted using [Partiko Android](https://play.google.com/store/apps/details?id=io.partiko.android)
author | liuzg |
---|---|
permlink | liuzg-re-deanliu-da-series-learn-python-with-steem-02-20180728t082321544z |
category | da-learnpythonwithsteem |
json_metadata | {"app":"partiko"} |
created | 2018-07-28 08:23:21 |
last_update | 2018-07-28 08:23:21 |
depth | 1 |
children | 2 |
last_payout | 2018-08-04 08:23:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 105 |
author_reputation | 20,078,417,529,815 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,253,055 |
net_rshares | 0 |
周末休息不學習啊,同學!😄 Posted using [Partiko Android](https://play.google.com/store/apps/details?id=io.partiko.android)
author | deanliu |
---|---|
permlink | deanliu-re-liuzg-liuzg-re-deanliu-da-series-learn-python-with-steem-02-20180728t083338194z |
category | da-learnpythonwithsteem |
json_metadata | {"app":"partiko"} |
created | 2018-07-28 08:33:39 |
last_update | 2018-07-28 08:33:39 |
depth | 2 |
children | 1 |
last_payout | 2018-08-04 08:33:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 111 |
author_reputation | 3,091,849,888,189,995 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,253,874 |
net_rshares | 0 |
哦哦。我照常上班,都忘了今天是周末。 祝你周末玩的开心,玩的愉快! Posted using [Partiko Android](https://play.google.com/store/apps/details?id=io.partiko.android)
author | liuzg |
---|---|
permlink | liuzg-re-deanliu-deanliu-re-liuzg-liuzg-re-deanliu-da-series-learn-python-with-steem-02-20180728t084414296z |
category | da-learnpythonwithsteem |
json_metadata | {"app":"partiko"} |
created | 2018-07-28 08:44:15 |
last_update | 2018-07-28 08:44:15 |
depth | 3 |
children | 0 |
last_payout | 2018-08-04 08:44:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 131 |
author_reputation | 20,078,417,529,815 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,254,662 |
net_rshares | 0 |
 改回3.6.5,我懒得开新文件了,在原来的文件下新增代码并运行~ 顺带发现没有申明,没有“;”,几乎一行一条代码以回车来分割,我记得好像有一行N条代码的方法,但是我忘记了,懒得找,坐等后面的教程。 区分大小写的节奏,试过把True改成true报错了,哈哈哈!
author | shine.wong |
---|---|
permlink | re-deanliu-da-series-learn-python-with-steem-02-20180727t055430452z |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem"],"community":"steempeak","app":"steempeak"} |
created | 2018-07-27 05:54:33 |
last_update | 2018-07-27 05:54:33 |
depth | 1 |
children | 1 |
last_payout | 2018-08-03 05:54:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.123 HBD |
curator_payout_value | 0.039 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 216 |
author_reputation | 1,329,335,530,903 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,121,398 |
net_rshares | 89,398,730,072 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
deanliu | 0 | 75,070,759,331 | 5% | ||
antonsteemit | 0 | 14,327,970,741 | 100% |
讚喔! 每行後面不用「;」真的滿方便的啦
author | antonsteemit |
---|---|
permlink | re-shinewong-re-deanliu-da-series-learn-python-with-steem-02-20180727t125802867z |
category | da-learnpythonwithsteem |
json_metadata | {"community":"busy","app":"busy/2.5.3","format":"markdown","tags":["da-learnpythonwithsteem"],"users":[],"links":[],"image":[]} |
created | 2018-07-27 12:58:06 |
last_update | 2018-07-27 13:06:21 |
depth | 2 |
children | 0 |
last_payout | 2018-08-03 12:58:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 20 |
author_reputation | 7,534,465,964,895 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,156,005 |
net_rshares | 0 |
忘了交作业啦[作业](https://busy.org/@yjcps/learnpythonwithsteem02-2ilwe1ti59),哈哈 补上。
author | yjcps |
---|---|
permlink | re-deanliu-da-series-learn-python-with-steem-02-20180728t122011611z |
category | da-learnpythonwithsteem |
json_metadata | {"community":"busy","app":"busy/2.5.3","format":"markdown","tags":["da-learnpythonwithsteem"],"users":["yjcps"],"links":["https://busy.org/@yjcps/learnpythonwithsteem02-2ilwe1ti59"],"image":[]} |
created | 2018-07-28 12:20:12 |
last_update | 2018-07-28 12:20:12 |
depth | 1 |
children | 1 |
last_payout | 2018-08-04 12:20:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.285 HBD |
curator_payout_value | 0.094 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 76 |
author_reputation | 1,019,613,572,923 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,271,791 |
net_rshares | 212,742,100,162 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
deanliu | 0 | 212,742,100,162 | 15% |
很棒!各位同學可以去看看這筆記,還補充了不少跟這堂課相關的知識喔!^_^
author | deanliu |
---|---|
permlink | re-yjcps-re-deanliu-da-series-learn-python-with-steem-02-20180728t133104627z |
category | da-learnpythonwithsteem |
json_metadata | {"tags":["da-learnpythonwithsteem"],"app":"steemit/0.1"} |
created | 2018-07-28 13:31:06 |
last_update | 2018-07-28 13:31:06 |
depth | 2 |
children | 0 |
last_payout | 2018-08-04 13:31:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 36 |
author_reputation | 3,091,849,888,189,995 |
root_title | "[DA series - Learn Python with Steem #02] 變數與資料型態" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,278,551 |
net_rshares | 0 |