
Python
allen6268198
这个作者很懒,什么都没留下…
展开
-
python utf-8 128出错
这是一个很有意思的问题,让我来从头讲起。首先,我们看看help(chr),可以知道Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff. 所以chr(i)函数实际上返回的是Unicode编码表中的一个字符,参数i指定了这个字符在Unicdoe编码表中的位置。PS1:Unicode编码表是...转载 2020-05-02 21:46:02 · 845 阅读 · 0 评论 -
阿里云socket服务器 外网客户端一直连接不上10060
1、阿里云控制台安全组配置2、server配置内网ip,client配置外网ip。gethostname获取是内网IP原创 2020-04-18 15:57:56 · 617 阅读 · 0 评论 -
python学习笔记一
#coding=utf-8 import webbrowser as web import time import os import random M = random.randint(10,15) print '随机数 = ', M N = 10 j = 0 while j i = 0 while i转载 2014-06-21 16:35:12 · 834 阅读 · 0 评论