Python基本觀念與變數

圖片
本章參考: 王者歸來 做的筆記 一、Python認識  1.Python是一種Interpreted language、Object Oriented Language的程式語言,並擁有完整的函數庫。 2.Python算是一種動態高階語言,具有Garbage collection機制。 3.Python是一個Open Source,並且本身有許多package或module。 二、靜態語言與動態語言 1.variable是一個語言核心,由變數的設定可以知道這個程式所要完成的工作;variable分成static language與dynamic language 2.有些程式語言的variable在使用前需要宣告他的資料型態,這樣compile可在記憶體內預留空間給variable。同時,這個變數的資料型態經過宣告後,未來無法再改變他的資料型態,這類的程式語言稱static language 3.variable在使用前不必宣告他的資料型態,其特色不用經過compile過程,而是使用interpreter直接interpret與execute,這類的程式語言稱dynamic language(scripting language、glue code) 4.實際案例,利用Python列出變數的位址,相同的內容的變數會有相同的位址。 5.刪除變數,雖然python變數宣告很方便,但有時候宣告過多,執行起來會有點小卡,因此可以刪除變數                                                      del 變數名稱

Australia Uses New Technology to Catch Drivers on Phones

Australia Uses New Technology to Catch Drivers on Phones

An Australian state is trying to stop people from using their phones while driving by putting new Mobile Phone Detection Cameras on its roads.
Road safety experts are concerned about the growing number of accidents involving drivers using phones on New South Wales roads. New South Wales Roads Minister Andrew Constance believes using a phone while driving is as dangerous as driving drunk.
The government of New South Wales plans to have 45 Mobile Phone Detection Cameras across the state by December 2019.
Each device has two cameras, one which looks into the car and can see what drivers are doing with their hands, and one that can see cars' registration plates.
Officials say the new cameras could prevent 100 fatal and serious injuries over five years.
A six-month test using just two of the devices this year checked 8.5 million vehicles and found more than 100,000 drivers with their hands on the phones.
One driver was caught using a phone and iPad at the same time. Another driver had a passenger hold the wheel for him while he used his phone with both hands, the government said.
It is illegal to touch a phone while driving in New South Wales, even for drivers who are stopped at red lights or in a traffic jam. Police said more than 16,500 drivers have already been caught using phones while driving in 2019.



My opinion:
1.The new technology is detection camera and it goal is road safety.
2.The growing number of accidents involving drivers using phones because using a phone while driving is as dangerous as driving drunk.
3.It is illegal to touch a phone while driving.

source:
https://engoo.com.tw/app/daily-news/article/australia-uses-new-technology-to-catch-drivers-on-phones/DdnfrN4EEemem7vPhlYnRw

留言

這個網誌中的熱門文章

CentOS 7快速架站心得與過程

CentOS7 之IP變動造成wordpress網頁出錯之解決過程

Django練習- django的網頁架設之基本觀念