摘要:
class A: def test(self): print('print from A') pass class B(A): # def test(self): # print('print from B') pass class C(A): def test(self): print('prin 阅读全文
摘要:
实验中用的 init.py 15 35 80 def read_visits(data_path): with open(data_path) as f: for line in f: yield int(line) def normalize_copy(numbers): numbers = li 阅读全文
摘要:
1.验证长字符串空格 def index_words(text): result = [] if text: result.append(0) for index, letter in enumerate(text): if letter ==' ': result.append(index+1) 阅读全文