Learning problems encountered by thread

Today, along with teacher learning threaded programming IO-intensive tasks, encountered a small problem: the time obviously import library, but unsolved reference ctime message when you write ctime, this is how it happened?

 

 

Later, the teacher told me either directly from time import ctime before it can be called directly ctime, or they will write time.ctime (), the problem is solved yet gained little experience

 

Guess you like

Origin www.cnblogs.com/nazirite/p/11287979.html
Recommended