- 博客(8)
- 收藏
- 关注
转载 linux
[root@system1 ~]# groupadd adminuser [root@system1 ~]# useradd -G adminuser harry[root@system1 ~]# useradd -G adminuser Natasha[root@system1 ~]# useradd -s /sbin/nologin tommy[root@system1 ~]#
2016-08-09 22:10:32 221
原创 python方法
round() 四舍五入取整数floor 取整数import math>>> math.floor(20.98)20circlenew window 执行import mathradius=float(input('radius:'))print(2*math.pi*radius,math.pi*pow(radius,2))跨
2014-03-29 12:41:02 418
转载 Python模块学习 --- urllib
http://www.blogjava.net/ashutc/archive/2011/03/21/346695.html
2014-03-28 09:56:36 336
转载 【教程】如何把Python2的代码转换为Python3的代码
http://www.crifan.com/how_to_convert_python2_into_python3/
2014-03-27 22:26:51 698
转载 Python3.x和Python2.x的区别介绍
1.性能 Py3.0运行 pystone benchmark的速度比Py2.5慢30%。Guido认为Py3.0有极大的优化空间,在字符串和整形操作上可 以取得很好的优化结果。 Py3.1性能比Py2.5慢15%,还有很大的提升空间。 2.编码 Py3.X源码文件默认使用utf-8编码,这就使得以下代码是合法的: >>> 中国 = 'china' >>>
2014-03-27 22:22:51 277
原创 Python语法
>>> x = input('Please input x:')Please input x: >>>print("x="+x)>>> the_world_is_flat = 1 #注释>>> if the_world_is_flat:print("Be careful not to fall off!")Be careful not to fall off!>>> x = y = z = 8
2014-03-27 21:28:34 424
原创 question
>>> 7//-3-3解释器>>> x=11.8599>>> round(x,3)11.86>>> x=11.8529>>> round(x,3)11.853>>> 'www.example.com'.strip('cmowz.')'example'>>> a['A', 12, 123, 1234]>>> a[0]=a>>> a[[.
2014-03-27 18:36:48 310
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人