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
| #!/usr/bin/env sh | |
| echo "Checking whether Chinese Environment..."; | |
| echo "ENV \$IN_CHINA: $IN_CHINA" | |
| if [ $IN_CHINA ]; then | |
| echo "Detected Chinese Environment." ; | |
| if (command -v apk); then | |
| echo "Detected apk package manager." ; | |
| VERSION_NUM="v3.10" ; | |
| echo -e "https://mirrors.aliyun.com/alpine/$VERSION_NUM/main\nhttps://mirrors.aliyun.com/alpine/$VERSION_NUM/community" > /etc/apk/repositories ; | |
| fi |
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 os | |
| def traverse(f): | |
| fs = os.listdir(f) | |
| for f1 in fs: | |
| tmp_path = os.path.join(f,f1) | |
| if not os.path.isdir(tmp_path): | |
| print('Detected File: %s'%tmp_path) | |
| f1 = open(tmp_path, "r") |
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
| <html> | |
| <head> | |
| <title>旗帜SVG演示</title> | |
| <meta charset="UTF-8"> | |
| <style> | |
| body{ | |
| background-color: #334b6c; | |
| } |
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
| def input_data(): | |
| num = 4 # 城市数量 | |
| c_map = [[0, 1, 10], | |
| [1, 3, 25], | |
| [2, 3, 30], | |
| [0, 2, 15], | |
| [1, 2, 35]] | |
| def trans_map_to_mat(num, map): | |
| mat = [[float("inf")] * num for i in range(num)] |