This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @Author: ChengYao | |
| * @Created time: 2017年5月14日 下午5:08 | |
| * @Email: [email protected] | |
| * @Description: Linux内核第四次作业 | |
| * | |
| */ | |
| /** | |
| * [thread_writer description] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bisect | |
| def grade(score, breakpoints=[60, 70, 80, 90], grades='FDCBA'): | |
| i = bisect.bisect(breakpoints, score) | |
| return grades[i] | |
| if __name__ == '__main__': | |
| grades = [grade(score) for score in [33, 99, 77, 70, 89, 90, 100]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM centos:7 | |
| RUN yum install -y libaio-devel fio && \ | |
| yum clean all && \ | |
| rm -rf /var/cache/yum |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "encoding/hex" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "os" |
OlderNewer