import datetime as dt dt.datetime.now().microsecond 转载于:https://www.cnblogs.com/zhangxuan/p/9411668.html