本文主要作为平时在 TypeScript 代码中编写类型以及对 TypeScript 代码进行 review 时候的参考手册,并非强制执行的规范,也不涉及纯代码风格以及代码逻辑上的指导。
本文内容参考了下面几个手册,所以强烈建议能够同时阅读完这几个手册。如果大家对 TypeScript 的一些基础用法和特性还不熟悉,也建议先阅读第一个 TypeScript 手册。
package main | |
// Simple, single-threaded server using system calls instead of the net library. | |
// | |
// Omitted features from the go net package: | |
// | |
// - TLS | |
// - Most error checking | |
// - Only supports bodies that close, no persistent or chunked connections | |
// - Redirects |
import xmltodict | |
import pandas as pd | |
import requests | |
xml = request.get('url').text | |
df = pd.DataFrame(xmltodict.parse(xml)) | |
df.rename(columns=lambda x: x.replace('@', ''), inplace=True) | |
df.to_csv('data.csv') |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# System: macOS 12+ | |
# Version: TeamViewer v15.x.x | |
# Python: 3.x.x | |
# Command: sudo python TeamViewer-15-id-changer.py | |
# | |
import os |
import gitlab | |
import urllib3 | |
import humanfriendly | |
import timeago, datetime | |
# 2020-04-24T12:04:26.475+00:00 | |
date_now = datetime.datetime.now() | |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) |
require 'openssl'
require 'jwt' # https://rubygems.org/gems/jwt
1、debian、ubuntu更新并升级软件包
apt update && apt upgrade -y
2、docker compose重新部署
docker compose down && docker compose up -d