在这里有一些适用于python 2的代码:https://gist.github.com/glacjay/585369,但是在python3上运行相同的代码(3.4和3.5测试),open调用失败了:
pd.merge(
df,
pd.DataFrame(df.Name.unique(), columns=['Name']).reset_index().rename(columns={'index': 'Foreign_Key'}),
on='Name'
)
Name Foreign_Key
0 John Doe 0
1 John Doe 0
2 Jane Smith 1
3 Jane Smith 1
我找到了将openering = 0添加到公开调用的建议。当我这样做时,公开呼叫成功了,但是当我试图阅读水龙头设备时,我什么也没得到。
答案 0 :(得分:0)
我使用类似的代码在Scapy中实现TUN / TAP接口支持,并且在这种情况下使用buffering=0
使用index.html:94 Uncaught TypeError: Cannot read property 'getTopY' of
undefined at laserCollision (index.html:94)
可以正常工作。