python是个什么东西

python是个什么东西,第1张

Python是一种跨平台的计算机程序设计语言。是一个高层次的结合了解释性、编译性、互动性和面向对象的脚本语言。最初被设计用于编写自动化脚本(shell),随着版本的不断更新和语言新功能的添加,越多被用于独立的、大型项目的开发。

Python的创始人为荷兰人吉多·范罗苏姆(GuidovanRossum)。1989年圣诞节期间,在阿姆斯特丹,Guido为了打发圣诞节的无趣,决心开发一个新的脚本解释程序,作为ABC语言的一种继承。

之所以选中Python(大蟒蛇的意思)作为该编程语言的名字,是取自英国20世纪70年代首播的电视喜剧《蒙提.派森的飞行马戏团》(MontyPython'sFlyingCircus)。

扩展资料:

python中文就是蟒蛇的意思。在计算机中,它是一种编程语言。Python(英语发音:/ˈpaɪθən/),是一种面向对象、解释型计算机程序设计语言,由GuidovanRossum于1989年底发明,第一个公开发行版发行于1991年。Python语法简洁而清晰,具有丰富和强大的类库。

它常被昵称为胶水语言,它能够把用其他语言制作的各种模块(尤其是C/C++)很轻松地联结在一起。常见的一种应用情形是,使用Python快速生成程序的原型(有时甚至是程序的最终界面),然后对其中有特别要求的部分,用更合适的语言改写。

比如3D游戏中的图形渲染模块,性能要求特别高,就可以用C++重写。1发展历程编辑自从20世纪90年代初Python语言诞生至今,它逐渐被广泛应用于处理系统管理任务和Web编程。Python已经成为最受欢迎的程序设计语言之一。

参考资料:

百度百科-Python

你需要一个TortoiseSVN的软件客户端,这是下载地址:ald这是使用手册:/linkurl=ue9MRMpyzfFX8fpSsV9AFISx6Q34cyhHyfkbChTa3eox7sGle11qyPBFo9owOwO8DCVszbyHqgsvTEEqW7o55 UQv0LFTUruyvrFkA_ETq如有帮助,请采纳,谢谢!

-------------------------------------------------------------
实验环境:
虚拟机:VMWare WorkStation 71
*** 作系统:RHEL 53
原有硬盘20G,使用自动分区安装系统
后添加3块SCSI硬盘,现已经全部热插上
-------------------------------------------------------------
[root@as5u3 ~]# echo "scsi add-single-device 0 0 1 0" > /proc/scsi/scsi
[root@as5u3 ~]# echo "scsi add-single-device 0 0 2 0" > /proc/scsi/scsi
[root@as5u3 ~]# echo "scsi add-single-device 0 0 3 0" > /proc/scsi/scsi
[root@as5u3 ~]# fdisk -l
Disk /dev/sda: 214 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 13 104391 83 Linux
/dev/sda2 14 2610 20860402+ 8e Linux LVM
Disk /dev/sdb: 1567 GB, 156766306304 bytes
255 heads, 63 sectors/track, 19059 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 1567 GB, 156766306304 bytes
255 heads, 63 sectors/track, 19059 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 1567 GB, 156766306304 bytes
255 heads, 63 sectors/track, 19059 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Disk /dev/sdd doesn't contain a valid partition table
[root@as5u3 ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel Changes will remain in memory only,
until you decide to write them After that, of course, the previous
content won't be recoverable
The number of cylinders for this disk is set to 19059
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (eg, old versions of LILO)
2) booting and partitioning software from other OSs
(eg, DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-19059, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-19059, default 19059):
Using default value 19059
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): l
0 Empty 1e Hidden W95 FAT1 80 Old Minix bf Solaris
1 FAT12 24 NEC DOS 81 Minix / old Lin c1 DRDOS/sec (FAT-
2 XENIX root 39 Plan 9 82 Linux swap / So c4 DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 83 Linux c6 DRDOS/sec (FAT-
4 FAT16 <32M 40 Venix 80286 84 OS/2 hidden C: c7 Syrinx
5 Extended 41 PPC PReP Boot 85 Linux extended da Non-FS data
6 FAT16 42 SFS 86 NTFS volume set db CP/M / CTOS /
7 HPFS/NTFS 4d QNX4x 87 NTFS volume set de Dell Utility
8 AIX 4e QNX4x 2nd part 88 Linux plaintext df BootIt
9 AIX bootable 4f QNX4x 3rd part 8e Linux LVM e1 DOS access
a OS/2 Boot Manag 50 OnTrack DM 93 Amoeba e3 DOS R/O
b W95 FAT32 51 OnTrack DM6 Aux 94 Amoeba BBT e4 SpeedStor
c W95 FAT32 (LBA) 52 CP/M 9f BSD/OS eb BeOS fs
e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi ee EFI GPT
f W95 Ext'd (LBA) 54 OnTrackDM6 a5 FreeBSD ef EFI (FAT-12/16/
10 OPUS 55 EZ-Drive a6 OpenBSD f0 Linux/PA-RISC b
11 Hidden FAT12 56 Golden Bow a7 NeXTSTEP f1 SpeedStor
12 Compaq diagnost 5c Priam Edisk a8 Darwin UFS f4 SpeedStor
14 Hidden FAT16 <3 61 SpeedStor a9 NetBSD f2 DOS secondary
16 Hidden FAT16 63 GNU HURD or Sys ab Darwin boot fb VMware VMFS
17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fc VMware VMKCORE
18 AST SmartSleep 65 Novell Netware b8 BSDI swap fd Linux raid auto
1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid fe LANstep
1c Hidden W95 FAT3 75 PC/IX be Solaris boot ff BBT
Hex code (type L to list codes): 83
Command (m for help): p
Disk /dev/sdb: 1567 GB, 156766306304 bytes
255 heads, 63 sectors/track, 19059 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 19059 153091386 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table
Syncing disks
-------------------------------------------------------------------
/dev/sdc /dev/sdd分区方法一样,略
-------------------------------------------------------------------
[root@as5u3 ~]# fdisk -l
Disk /dev/sda: 214 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 13 104391 83 Linux
/dev/sda2 14 2610 20860402+ 8e Linux LVM
Disk /dev/sdb: 1567 GB, 156766306304 bytes
255 heads, 63 sectors/track, 19059 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 19059 153091386 83 Linux
Disk /dev/sdc: 1567 GB, 156766306304 bytes
255 heads, 63 sectors/track, 19059 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 19059 153091386 83 Linux
Disk /dev/sdd: 1567 GB, 156766306304 bytes
255 heads, 63 sectors/track, 19059 cylinders
Units = cylinders of 16065 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 19059 153091386 83 Linux
[root@as5u3 ~]# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 1988 GB
PE Size 3200 MB
Total PE 636
Alloc PE / Size 636 / 1988 GB
Free PE / Size 0 / 0
VG UUID tl8AYK-pp5C-M3Px-mMIg-XsFn-AO5o-JQC43E

[root@as5u3 ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 1989 GB / not usable 1949 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 636
Free PE 0
Allocated PE 636
PV UUID HIsTkc-6E16-9QYp-AFA9-MFNU-oxFs-HZxEs3

[root@as5u3 ~]# pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created
[root@as5u3 ~]# pvcreate /dev/sdc1
Physical volume "/dev/sdc1" successfully created
[root@as5u3 ~]# pvcreate /dev/sdd1
Physical volume "/dev/sdd1" successfully created
[root@as5u3 ~]# vgextend VolGroup00 /dev/sdb1 /dev/sdc1 /dev/sdd1
Volume group "VolGroup00" successfully extended
[root@as5u3 ~]# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 4
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 4
Act PV 4
VG Size 45778 GB
PE Size 3200 MB
Total PE 14649
Alloc PE / Size 636 / 1988 GB
Free PE / Size 14013 / 43791 GB
VG UUID tl8AYK-pp5C-M3Px-mMIg-XsFn-AO5o-JQC43E
[root@as5u3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
19G 23G 16G 14% /
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 252M 0 252M 0% /dev/shm
----------------------------------------------------------------------
扩展为200G
-----------------------------------------------------------------------
[root@as5u3 ~]# lvextend -L 200GB /dev/VolGroup00/LogVol00
Extending logical volume LogVol00 to 20000 GB
Logical volume LogVol00 successfully resized
[root@as5u3 ~]# resize2fs /dev/VolGroup00/LogVol00
resize2fs 139 (29-May-2006)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 52428800 (4k) blocks
The filesystem on /dev/VolGroup00/LogVol00 is now 52428800 blocks long
[root@as5u3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
194G 23G 182G 2% /
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 252M 0 252M 0% /dev/shm
----------------------------------------------------------------------
再加100G
-----------------------------------------------------------------------
[root@as5u3 ~]# lvextend -L +100GB /dev/VolGroup00/LogVol00
Extending logical volume LogVol00 to 30000 GB
Logical volume LogVol00 successfully resized
[root@as5u3 ~]# resize2fs /dev/VolGroup00/LogVol00
resize2fs 139 (29-May-2006)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 78643200 (4k) blocks
The filesystem on /dev/VolGroup00/LogVol00 is now 78643200 blocks long
[root@as5u3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
274G 23G 258G 1% /
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 252M 0 252M 0% /dev/shm


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/13443866.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-08-07
下一篇 2023-08-07

发表评论

登录后才能评论

评论列表(0条)

保存