Python-基礎課-第二節-03-輸入和輸出

input輸入函數阻塞 1.input()輸入函數不論輸入什麼返回值都爲字符串 2.當程序中有input()函數時,程序會中止在input()函數這塊,這是程序python # 1.input -->默認是str # ipt = input("請輸入") # print(type(ipt)) # 2.程序執行遇到input會一直等待用戶輸入,纔會往下執行 # print("你好,老弟...")
相關文章
相關標籤/搜索