摘要:
在RHEL6下使用Vim写python脚本发现不能使用中文注释,后来发现是编码问题[wu@server python]$ cat ex4.py #!/usr/bin/python #中文注释
#cars_num
cars = 100
#space_car_num
space_in_a_car = 40
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passen.. 阅读全文