mirror of
				https://github.com/Mabbs/mabbs.github.io
				synced 2025-10-31 14:52:17 +08:00 
			
		
		
		
	Restore deleted repositories
This commit is contained in:
		
							
								
								
									
										37
									
								
								_posts/2019-11-01-python.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								_posts/2019-11-01-python.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| --- | ||||
| layout: post | ||||
| title: Mayx应聘失败(Python版) | ||||
| tags: [应聘, Python, 面向时间] | ||||
| --- | ||||
|  | ||||
| 既然最近学了Python,那就去应聘一下Python程序员吧XD<!--more-->    | ||||
|  | ||||
| [上次去面试运维失败了](/2019/01/27/shell.html),这次不能这么丢人了。    | ||||
| 然后那个面试官居然又让我写排序的程序23333 | ||||
|  | ||||
| Mayx想了想,写出了以下代码: | ||||
| ```python | ||||
| a=[1,2,3,5,4,9,10,8,5] | ||||
| import threading | ||||
| import time | ||||
| def counting(i): | ||||
|     time.sleep(i) | ||||
|     print(i) | ||||
| for i in a: | ||||
|         threading.Thread(target=counting,args=(i,)).start() | ||||
| ``` | ||||
| 执行效果: | ||||
| ``` | ||||
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 5 | ||||
| 8 | ||||
| 9 | ||||
| 10 | ||||
| ```    | ||||
| 然后,Mayx被赶出来了……    | ||||
| 我写的代码明明可以执行,效果也没问题,居然赶我出来,这一定是个垃圾公司!    | ||||
| 后来才知道,他们又想让我回答`sort()`,怕是同一家公司(笑) | ||||
		Reference in New Issue
	
	Block a user