05 2021 档案
摘要:title: ①解决字符串的翻转 ②堆和栈的区别? >>> class Stack: def __init__(self): self.item = [] def isEmpty(self): return len(self.item)==0 def push(self,item): self.it
阅读全文
摘要:>>> a={x for x in 'abkckldlk' if x not in 'adc'} //求字符串中除去‘adc’字符的字符串,输出为set()类型>>> a{'l', 'k', 'b'} >>> a=[x for x in 'dkjfl ss' if x not in 'sl'] //
阅读全文
浙公网安备 33010602011771号