0
A
回答
1
听起来像是你不使用SCP正确 - 看https://unix.stackexchange.com/questions/188285/how-to-copy-a-file-from-a-remote-server-to-a-local-machine
根据什么远程机器使用,您可能有运行脚本,只是得到的结果;这可能会更有效率。
你对你想要执行的实际操作非常模糊;如果你想快速处理大量的数据NumPy
可能真的有帮助 - 像
import numpy as np
FILES = ["a.dat", "b.dat"] # we assume that all files are the same length
data = np.stack(
(np.fromfile(f, dtype=np.uint32) for f in FILES), # endian-ness may be an issue!
axis=1
)
# applying a Python function
def myfunc(row):
return min(row)
result = np.apply_along_axis(myfunc, 1, data)
# but using a numpy function directly would be better!
result = np.min(data, axis=1)
相关问题
- 1. python循环遍历行数
- 2. Python循环遍历列表
- 3. 简单的Python循环遍历字典
- 4. 在jQuery中循环遍历
- 5. 在ruby中循环遍历
- 6. 在jQuery中循环遍历?
- 7. 在PowerBuilder中循环遍历字符串
- 8. 在PL/SQL中循环遍历字
- 9. 循环遍历Python中的列表
- 10. 在整数中循环遍历,ruby
- 11. 在bash中循环遍历数组
- 12. 在Ruby/Rails中循环遍历数组
- 13. 一次循环遍历多个数字
- 14. 循环遍历循环并返回数组中的字符串
- 15. 循环遍历isEmpty
- 16. 循环遍历天
- 17. 循环遍历LinkedList
- 18. 循环遍历pd.dataframe
- 19. 的Python for循环遍历列表
- 20. python beautifulsoup循环遍历表格行
- 21. Python BeautifulSoup - 循环遍历多个页面
- 22. 循环遍历多个列表 - Python
- 23. 如何在PHP中循环遍历数组的循环?
- 24. 在搜索后循环遍历数组
- 25. 循环遍历数组以获取字符串中的数字
- 26. 通过Python中的循环遍历键和值到字典3.3
- 27. 循环遍历python中的每个字符
- 28. 循环遍历for循环和If/Else
- 29. 未循环遍历循环 - javascript
- 30. VBA循环遍历嵌套for循环
你到目前为止尝试过什么? –
你对远程机器有什么样的访问权限?这是在网络共享上,还是通过http/ftp,或者你可以SSH? –
你的Python脚本需要访问这些文件。 https://stackoverflow.com/questions/1035340/reading-binary-file-and-looping-over-each-byte – RPGillespie