样品我有一个清单:
sample = [a, b, c, d]
然后我想将样本传递给会话:
self.session['sample'] = None #declaring the session...
for item in sample:
self.session['sample'] = str(self.session['sample']) + "," + str(item)
但输出是:
无,a,b,c,d
我希望我的 session['sample'] 的值是 =a, b, c, d