mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 07:53:33 +08:00
7 lines
200 B
Python
Executable File
7 lines
200 B
Python
Executable File
import sys
|
|
print 'Arguments: file - ' + sys.argv[1] + ', length - ' + sys.argv[2]
|
|
file = open(sys.argv[1], 'w')
|
|
for i in range(int(sys.argv[2])):
|
|
b = bytearray([i & 0xFF])
|
|
file.write(b)
|
|
file.close() |