Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block toppy368

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
yisibl /
Last active May 4, 2020
如何创建 Git 公钥


  1. 首先启动一个Git Bash窗口(非Windows用户直接打开终端)

  2. 执行:

    cd ~/.ssh

    如果返回“… No such file or directory”,说明没有生成过SSH Key,直接进入第4步。否则进入第3步备份!

uranusjr / installation.rst
Last active Jan 20, 2020
在各作業系統上安裝 Python 3.4。
View installation.rst

設定 Python 環境

開始使用 Pyhton 之前,首先要確定電腦上能不能執行 Pyhton 程式。本教學將需要 Python 3.4 或更高的版本,因此請確認電腦上是否有對應版本。若不確定電腦上是否已經安裝 Python,建議直接按照以下步驟設定,以保證教學中的程式皆能夠正常執行。由於各作業系統安裝流程不同,以下請按照作業系統,選擇自己需要的部份閱讀。


View 网络校时.py
# -*- coding: utf-8 -*-
import socket,sys,time
host = ""
port = 37
curtz = 8
beordle / 网络时间.py
Created Feb 19, 2013
从 网络 校正时间
View 网络时间.py
from socket import *
import datetime,os,struct,time,sys
# Script to set Linux hardware clock (/usr/sbin/hwclock) from an NTP
# time server. Run as "" to simply print the time from
# the NTP server. Run as " --set" to set the Linux
# hardware clock (as the super user, of course).
# Based on Simon Foster's simple SNTP client from ASPN Python cookbook.
# Adapted by Paul Rubin; this script lives at:
You can’t perform that action at this time.