時間:2015/03/16 19:00
- 周彤
- 張培堯
- 張泰瑋
- 戴均民
#!/bin/env python3 | |
import urllib, shutil, json, sys | |
import urllib.request | |
import urllib.parse | |
def dl_gitlab_archive(url, private_token, out_filename): | |
try: | |
fields = urllib.parse.urlencode({ | |
'private_token': private_token |
請大家把我加到書籤~
本 class 主要用於處理以下事項
幸福隨手可得,便利就在指尖。
立即啟用社區雲管家 APP,馬上享受智慧社區生活。
<?php | |
if(!function_exists('encode_json')) { | |
function encode_json( $var ) { | |
static $options = null; | |
if (is_null($options)) { | |
$options = 0; | |
if (version_compare(PHP_VERSION, '5.3.3') >= 0) | |
$options |= JSON_NUMERIC_CHECK; | |
if (version_compare(PHP_VERSION, '5.4.0') >= 0) |
<?php | |
try { | |
$files = scandir('.'); | |
if(!is_array($files)) | |
throw new Exception('scandir error: '.var_export($files, true)); | |
foreach($files as &$file) | |
$file = iconv('cp950', 'utf-8//TRANSLIT', $file); | |
unset($file); | |
echo "Find What: "; |