集合set 可以直接用 & 取交集 import pandas as pd print("CSDN叶庭云:https://yetingyun.blog.csdn.net/") set1 = {"Python", "Go", "C++", "Java"} set2 = {"Go", "C++", "JavaScript", "C"} set1 & set2 df1 = pd.DataFrame([ ['1', 'Python'], ['2', 'Go'], ['3', '...
www.jb51.net/article/235509.htm 2022-1-23