6/30/2021

Tool in Python

In Functions: 

$ def func()

$ Try:

      Xxxx

$ Except:

      Yunyun

$ Raise TypeError (‘xxx must be int’)

 

Word = ‘data’

It = iter(word)

Print (*it) : print all it data

Print (next(it)) : 下一项

file  = open(‘1.txt’)

It = iter(file)

Print (next(it))


with open('datacamp.csv') as datacamp


没有评论: