溫馨提示×

python中用什么函數讀取字符串

九三
783
2021-01-20 17:00:20
欄目: 編程語言

python中用什么函數讀取字符串

python中使用input函數讀取字符串,具體方法如下:

input()函數語法:

str = input(tipmsg)

input()函數使用方法:

a = input("Enter a number: ")

b = input("Enter another number: ")

print("aType: ", type(a))

print("bType: ", type(b))

result = a + b

print("resultValue: ", result)

print("resultType: ", type(result))

0
亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女