在python代码中判断python版本:
if sys.version_info < (3, 0): lib.make_flows.argtypes = [c_char_p, c_char_p, c_int, c_int, c_int] lib.make_flows(avi, newpath, 0, 0, 10) else: in_path = bytes(avi, ‘utf8‘) out_path = bytes(newpath, ‘utf8‘) lib.make_flows(in_path, out_path, 0, 0, 10)
原文地址:https://www.cnblogs.com/ocean1100/p/9276024.html
时间: 2024-10-13 12:45:06