python jupyter单元格输出复制到剪贴板
法1
import pandas as pd
df = pd.DataFrame(['Copy me to clipboard'])
df.to_clipboard(index=False,header=False)
法2
import pyperclip as clip
res = [(str(x*100), x) for x in range(1, 10)]
clip.copy(f"{res}")
#clip.copy("{}".format(res)) # python < 3.6
clip.paste()