https://slides.kaiyeee.tw/today
Chocolatey (Windows) https://chocolatey.org
套件管理器
> @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
PS> Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Brew (Mac) https://brew.sh
套件管理器
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
VSCode https://code.visualstudio.com
編輯器
$ brew cask install visual-studio-code
> choco install vscode
Python https://python.org
$ brew install python3
> choco install python3
Verify
$ python3 -V
> python -V
print()
>>> print("Hello HSNU!")
# Hello HSNU!
幫資料取一個名字,把資料儲存起來!
>>> greeting = "Hello World!"
>>> print(greeting)
# Hello World
int 整數float 含小數點的數字str 字串Python 可以不用指定型態
>>> year = 2018
>>> type(year)
# class 'int'
>>> price_of_iPhone_Xs = 999.00
>>> type(price_of_iPhone_Xs)
# class 'float'
>>> year = "2018"
>>> type(year)
# class 'str'
試試看數字和字串相加吧
>>> a = 1
>>> b = "2"
>>> print(a + b)
# Traceback (most recent call last):
# File "stdin", line 1, in "module"
# TypeError: unsupported operand type(s) for +: 'int' and 'str'
>>> print(a + int(b))
# 3
>>> print(str(a) + b)
# 12
裡面藏了很多東西,歡迎去挖寶:
https://github.com/Oschangkai
我的聯絡方式...
Email: [email protected]
FB: https://fb.com/kaiyeeeee
Telegram: @kaiyeee
拜託大家幫我填個表單~~
https://slides.kaiyeee.tw/feedback