开发者

App Engine List<String> DB adds chars before string?

开发者 https://www.devze.com 2022-12-28 14:11 出处:网络
I have a field in my db which is a List. I add strings to that list and it works fine on the development server.

I have a field in my db which is a List.

I add strings to that list and it works fine on the development server.

This is the result: [mat12, bg10]

When I do the same on th开发者_运维问答e deploy server, this is the result: [u'mat12', u'bg10']

I don't understand why it adds "u' '" to the string.

I would really appreciate your help.

Thanks


'u' is the Python notation for a unicode string. It's not part of the string: it's outside the quotes.

0

精彩评论

暂无评论...
验证码 换一张
取 消