Skip to content

Instantly share code, notes, and snippets.

@Hutsh
Hutsh / MJD2date.py
Created May 26, 2019 10:40
Convert MJD time to ISO format
import re, math
def MJD2UTCISO(MJD):
"""
转换MJD时间到ISO格式UTC时间(GMT时区)
:参数 MJD: float或string 格式的MJD时间
:return:string ISO格式UTC时间(GMT时区)
"""
# MJD = 58120.20833333349
@Hutsh
Hutsh / cheatsheet.py
Created August 27, 2016 01:04 — forked from fuyufjh/cheatsheet.py
My Python Cheatsheet
Python Cheatsheet
=================
################################ Input & Output ###############################
name = input('please enter your name: ')
print('hello,', name)
ageStr = input('please enter your age: ')
age = int(ageStr)