pythn調用shll命令:創建hbase表

融合python的類庫和shell的全部功能於一體: 在python腳本中調用shell命令 1,使用python解析參數 2,調用shell命令,並獲取對應的輸出結果 py_shell_arr.sh: 腳本內容如下 #!/usr/bin/python # -*- coding: UTF-8 -*- import os,sys #定義數組 table_prefix="xyz" #arr=(12,
相關文章
相關標籤/搜索