我有一个像这样的字符串:
2011-11-11 11:11:11.111111
Run Code Online (Sandbox Code Playgroud)
我需要将它插入MySql,进入datetime列.但是在插入之后,它就变成了
2011-11-11 11:11:11
Run Code Online (Sandbox Code Playgroud)
出了什么问题?
Traceback (most recent call last):
File "D:\Program Files\JetBrains\PyCharm 3.0.1\helpers\pydev\pydevd.py", line 2, in <module>
from django_debug import DjangoLineBreakpoint
File "D:\Program Files\JetBrains\PyCharm 3.0.1\helpers\pydev\django_debug.py", line 3, in <module>
from pydevd_comm import CMD_SET_BREAK
File "D:\Program Files\JetBrains\PyCharm 3.0.1\helpers\pydev\pydevd_comm.py", line 107, in <module>
import pydevconsole
File "D:\Program Files\JetBrains\PyCharm 3.0.1\helpers\pydev\pydevconsole.py", line 6, in <module>
from code import compile_command
ImportError: cannot import name compile_command
Run Code Online (Sandbox Code Playgroud)
我的代码是简单的webpy示例,它没有问题.