python
python代码笔记
kongslly
码海求知,只因迷惑.IT的世界博大精深,不是因为不会,而是因为根本不懂
echo H4sIAIWNIV4AA92VwQ7CMAxD7/sKpP3/P3JAqMmznRW0AyISqCqNZzvuOM+76rgN6dehHq1eO/V77buzgFr4vUVb3VlA1aNs0zVhI5QDrtI/gqrH3r9us+rr6li3/tIrtTZ/xgmyOD1y1TpS63JHR6FeCiv1gTF1u1GgmtvnqAqswBRMlUxwsGJuuO5DYNYARd86PEUNXvU89fRwJDVhAaof4SrbANuTawTWRworNlOaenXxZqisKMUlbcOr+lyNo
展开
-
python列表数据类型
#!/usr/bin/env python def main(): arr=["china", "beijing", "chaoyang"] output=[] output_list=[] for i in range(len(arr)): v=arr[i] print i,':',v info={}原创 2017-11-30 20:22:16 · 662 阅读 · 0 评论 -
获取本地时间与UTC时间
使用Python获取本地时间以及URC时间 #!/usr/bin/env python import time output={} def __get_time_info(): time_info = {} now_time = time.time() time_info["local_time"]=time.strftime("%s",time.localtime(now_time原创 2017-11-30 19:59:58 · 6505 阅读 · 0 评论