摘要:
class Solution: def removeElement(self, nums: List[int], val: int) -> int: while val in nums: nums.remove(val) return len(nums) remove()方法在使用过程中,往往需要结 阅读全文
摘要:
考察的重点,是Python判断字符串是否包含另一字符串 class Solution: def maxRepeating(self, sequence: str, word: str) -> int: for _i in range(1,100): if word * _i in sequence: 阅读全文
摘要:
cp stands for copy. This command is used to copy files or group of files or directory. It creates an exact image of a file on a disk with different fi 阅读全文
摘要:
1 ListA=[] 2 ListB=[1] 3 if not ListA: 4 print("List A Empty~") 5 if ListB: 6 print("List B NOT Empty~") 最后的回显为: 1 (PythonVirtualEnv_3100) PS D:\Pytho 阅读全文