Python入門基礎

help('math') #介紹math函數 dir(x) #x都有哪些操作方法 type(x) #x的類型   a = input().split() #空格區別輸入,生成list b = [int(x) for x in a] #list中每個值轉換爲整型     sequence type --- list, tuple, range a = ''.join(b) #list轉化爲字符串,'
相關文章
相關標籤/搜索