Python3
OrdinaryCrazy
这里是张劲暾的优快云博客
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
计算机网络(1)——简易的Web Server
#file name:PA01_1.py #writer:Zhang_Jingtun(Ordinary_Crazy) #initial date:20180310 #import socket module from socket import * serverSocket = socket(AF_INET, SOCK_STREAM) #Prepare a sever socket #Fill i...原创 2018-03-10 21:15:35 · 1277 阅读 · 0 评论 -
计算机网络(2)——手动SMTP
#file name:PA01_3.py #writer:Zhang_Jingtun(Ordinary_Crazy) #initial date:20180310 from socket import * msg = "\r\n I love computer networks!" endmsg = "\r\n.\r\n" # Choose a mail server (e.g. Google ...原创 2018-03-11 16:00:53 · 1439 阅读 · 2 评论 -
python 如何实现四舍五入
round()函数,如round(2.33)原创 2018-03-25 22:25:07 · 3292 阅读 · 0 评论 -
Python3中的raw_input()
python3中 raw_input() 变成了 input()原创 2018-03-26 08:17:17 · 2904 阅读 · 0 评论 -
Python3中如何让print不换行
print("Who is godness?",end = "")>>> help(print) Help on built-in function print in module builtins: print(...) print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)...原创 2018-03-26 08:25:20 · 2689 阅读 · 0 评论 -
Pydoc
python3 -m pydoc os pydoc - the Python documentation tool pydoc <name> ... Show text documentation on something. <name> may be the name of a Python keyword, topic, function, modu...原创 2018-03-26 08:37:02 · 937 阅读 · 0 评论 -
Python判断文件路径是否存在exists()
# -*- coding:utf-8 -*- from sys import argv from os.path import exists script,from_file,to_file = argv print("Copying from %s to %s" % (from_file,to_file)) print("Does the destination file exists? : ...原创 2018-03-28 15:35:23 · 19077 阅读 · 1 评论
分享