python中格式化输出单引号
2017-06-13 16:55
375 查看
set_loc_command = '%s -e "alter table %s set location \'%s\';"' %(beeline_cliet, table_name, location)
#(status, output) = commands.getstatusoutput(set_loc_command)
print set_loc_command
http://blog.csdn.net/zyz511919766/article/details/22668077
#(status, output) = commands.getstatusoutput(set_loc_command)
print set_loc_command
输出:
/home/xxx -u jdbc:hive2://xxxxxxxx -n username -p passwd --maxWidth=10000 -e "alter table tablename
set location 'hdfs://xxxxxxx/app/inf';"
http://blog.csdn.net/zyz511919766/article/details/22668077
相关文章推荐
- Python字符串的连接、替换、截取,以及字符串格式化输出,引号
- Python print函数用法,print 格式化输出
- Python的print 格式化输出
- python字符串格式化输出的方式
- Python3.3 print函数用法,print 格式化输出
- python输出格式化及函数format
- python(5): string的格式化输出
- Python学习-格式化输出(format)
- python 格式化 输出
- Python print函数用法,print 格式化输出
- python获取日期及格式化输出
- Python的print 格式化输出
- python格式化输出时间
- Python 字符串格式化输出(format/printf)
- python 格式化输出
- python print函数格式化输出
- Python的print 格式化输出
- python 格式化输出
- Python 字符串 格式化 输出
- Python 类继承 和 格式化输出