File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ / *
2+ * Copyright (c ) 2006 - 2019 , RT - Thread Development Team
3+ *
4+ * SPDX - License - Identifier : MIT License
5+ *
6+ * Change Logs :
7+ * Date Author Notes
8+ * 2019 - 06 - 13 SummerGift first version
9+ * /
10+
11+ import _thread
12+ import utime as time
13+
14+ def testThread ():
15+ while True :
16+ print ("Hello from thread" )
17+ time .sleep (2 )
18+
19+ _thread .start_new_thread (testThread , ())
20+ while True :
21+ pass
Original file line number Diff line number Diff line change 1+ / *
2+ * Copyright (c ) 2006 - 2019 , RT - Thread Development Team
3+ *
4+ * SPDX - License - Identifier : MIT License
5+ *
6+ * Change Logs :
7+ * Date Author Notes
8+ * 2019 - 06 - 13 SummerGift first version
9+ * /
10+
11+ import uos
12+
13+ uos .mkdir ("rtthread" )
14+ uos .getcwd ()
15+ uos .chdir ("rtthread" )
16+ uos .getcwd ()
17+ uos .listdir ()
18+ uos .rmdir ("11" )
19+ uos .listdir ()
20+
You can’t perform that action at this time.
0 commit comments