Python初學者零碎基礎筆記(一)

Python初學者零碎基礎筆記 一行代碼輸入多個參數 方法1.) a,b,c=map(類型,input(「請輸入」).split()) #默認空格分隔,若要轉其餘類型,把類型換成須要的 如-----轉整型:map(int,input(「請輸入」).split())python a,b,c=map(int,input("請輸入").split()) print(a+b+c,type(a),type(
相關文章
相關標籤/搜索