2017-08-21Python作業
編寫一個登陸接口:
賬戶密碼輸入
認證成功後顯示歡迎信息
輸錯3次後鎖定
_username = 101645 _password = 101645 for i in range(100): username = int(input("username:")) password = int(input("password:")) if username == _username and password == _password: print("Wlcome to system") break if username != _username and password != _password: print("The users and password is error") if i == 2: print("the system is locking") break
2017-08-21Python作業
相關推薦
2017-08-21Python作業
python day1作業編寫一個登陸接口:賬戶密碼輸入認證成功後顯示歡迎信息輸錯3次後鎖定_username = 101645 _password = 101645 for i in range(100): username = int(input("username:")) passwor
float、double以及正負無窮大——2017.08.01
8.0 科學計算 rate init fin 輸出結果 logs prim 5.5 package Collection; public class PrimitiveType { public static void main(String[] args) {
2017/08/01 工作日誌
ica 利用 lin heal alt rec 參考 數列 ren 昨天下班前拿到一份文檔,就是上次開會時說的新系統的需求文檔,記錄了一些名詞 EMR(Electronic Medical Record)、EHR(Electronic Health Record)、 HIS
面向對象總結——2017.08.02
swap ges new highlight class cti 例子 8.0 機制 方法的參數傳遞機制:只能是值傳遞 package Collection; public class ZhiCd { //此處如果不加靜態static //Exception
2017.08.04 Python網絡爬蟲之Scrapy爬蟲實戰二 天氣預報
font size 項目 執行 weather html time art show 1.項目準備:網站地址:http://quanzhou.tianqi.com/ 2.創建編輯Scrapy爬蟲: scrapy startproject weather scrapy
2017.08.04 Python網絡爬蟲之Scrapy爬蟲實戰二 天氣預報的數據存儲問題
sql語句 city amd64 ces img href asp encoding primary 1.數據存儲到JSon:程序閱讀一般都是使用更方便的Json或者cvs等待格式,繼續講解Scrapy爬蟲的保存方式,也就是繼續對pipelines.py文件動手腳 (1)創
編程筆記 2017-08-07
jpg factor 睡覺 讀書 關於 -1 完全 編程 代碼 貼一些前幾天跟蹤代碼的草稿吧,以證明前兩天並未閑著。 今天,覺得模型類Shape和ShapeFactory理解的已較為透徹了想再進一步,粗粗瀏覽了Controller目錄下的GameControlle
2017.08.05【NOIP提高組】模擬賽B組
第一題 mar pan soft 提高 題目 mil font cal Summary 這次比賽打得非常差,第一題我以為是個難題,於是推了一下就沒再去想了,然而考場上一堆人AC。第二題狀態設錯了,導致結果有後效性。結束後pascal卡常卡了36次。第三題別人n&sup
異常處理——2017.08.07
java 邏輯 修正 是什麽 機制 什麽 throw 對象 異常 一 異常 異常是什麽?異常是程序員修正之後還能繼續運行的錯誤。 分類:Checked異常和Runtime異常,Checked異常是指在編譯階段被處理的異常,Runtime異常是指在運行期間才能發現的異常。
2017.08.10 Python爬蟲實戰之爬蟲攻防
ebs 1-1 間隔 ima pic setting fin 數據 del 1.創建一般的爬蟲:一般來說,小於100次訪問的爬蟲都無須為此擔心 (1)以爬取美劇天堂為例,來源網頁:http://www.meijutt.com/new100.html,項目準備: scrapy
2017.08.10 Python爬蟲實戰之爬蟲攻防篇
5.1 inux ice 一個 1.0 ninja 多網站 alt bject 1.封鎖user-agent破解: user-agent是瀏覽器的身份標識,網站就是通過user-agent來確定瀏覽器類型的。有很多網站會拒絕不符合一定標準的user-agent請求網頁,如果
2017.08.11 Python網絡爬蟲實戰之Beautiful Soup爬蟲
文件的 華僑 定位 spa 文件目錄 lxml odi nco unicode 1.與Scrapy不同的是Beautiful Soup並不是一個框架,而是一個模塊;與Scrapy相比,bs4中間多了一道解析的過程(Scrapy是URL返回什麽數據,程序就接受什麽數據進行過濾
編程筆記 2017-08-12
浪費 isf pan 放音 list game 背景 單位 其他 上午較為困倦,迷迷糊糊的,代碼閱讀量不大。其間,又被叫去,擡桌子,椅子,幹了些體力活。這要在研發單位,工程師做其他,簡直是浪費。幾個點: 確定Ground類,即遊戲面板的背景,其初始化,width =
GOCN每日新聞(2017-08-12)
-o href tps git 3.5 引擎 golang rom ear 1、為什麽我們從 Python 轉向 Go 2、Go 實現常見數據結構 3、3年半,50萬行 Go 代碼 4、Go 遊戲引擎 oka 5、Go 是隱藏學習曲線的語言GOCN每日新聞(20
2017-08-20 block,inline和inline-block概念和區別
可控 isp 寬度 對比 如何 afa 特性 豎直 right display:inline、block、inline-block的區別 display:block就是將元素顯示為塊級元素. block元素的特點是: 總是在新行上開始; 高度,行高以及頂和底邊
2017.08.19晚開始學習c語言
blog src -1 png primer locks 一個 感覺 .html 一個完全的新手,希望通過c的學習,來鍛煉並為自己的將來構建一個美好的平臺! 一 教程查找 1.習慣性使用種子搜索(壞笑)搜到c語言教程,選擇其中自學去學習教程並開始學習.而後因視頻下載過慢,百
2017-08-22校驗
() func evel end amp this sre sta key Const ADDIN_NAME As String = "AddInFunction" Const SETTING_ITEM As String = "AddInSetting" Const K
Spring註解Annotion——2017.08.27
pos cnblogs 我們 XML brush not 作用 ice ann 1 Spring中註解起的作用 前提是要在xml配置文件中 <context:compoent-scan base-package="cn.itcast"> &
Spring的bean管理(註解)——2017.08.26
logs 名稱 osi println wire scope system name 註入屬性 1 註解是什麽?代碼裏面的特殊標記,使用註解可以完成功能 註解寫法:@註解名稱(屬性名稱=屬性值) 註解的地方:類上面,方法上面和屬性上面 //類對象上創建對象 @Com
2017.08.27
enable round class module 技術 結果 pan -c ssi 任務安排:基於Cyclone IV的基本代碼編寫及硬件實現; 1:Verilog hdl的運算符 2.簡單程序編寫;(輸入利用接口key,ckey,輸出利用led可以直接觀測到輸出