michaelliao / awesome-python3-webapp

小白的Python入门教程实战篇:网站+iOS App源码→ http://t.cn/R2PDyWN 赞助→ http://t.cn/R5bhVpf
GNU General Public License v3.0
2.37k stars 2.81k forks source link

modify function create_args_string #14

Closed liadbiz closed 8 years ago

liadbiz commented 8 years ago

modify function create_args_string to a single line statement

moling3650 commented 8 years ago

', '.join(['?'] * num) is better

michaelliao commented 8 years ago

do you try:

', '.join('?' * num)

moling3650 commented 8 years ago

', '.join('?' * num) is best...