input函数的基本使用
生活随笔
收集整理的這篇文章主要介紹了
input函数的基本使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
python3Python 3.4.3 (default, Nov 12 2018, 22:20:49)>>> input()123'123'>>> input("請輸入銀行密碼")請輸入銀行密碼123456'123456'>>> password = input("請輸入銀行密碼")請輸入銀行密碼123456>>> password'123456'>>> print(password)123456>>> type(password)<class 'str'>>>> age = input("請輸入您的年齡")請輸入您的年齡18>>> age'18'>>> type(age)<class 'str'>
?
超強干貨來襲 云風專訪:近40年碼齡,通宵達旦的技術人生總結
以上是生活随笔為你收集整理的input函数的基本使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 拼接字符串的两种方式
- 下一篇: 类型转换函数介绍