編輯器的選擇
開啟pycharm
設定python解析器
設定字型
設定初始py檔案格式
預設的py檔案是空白的,什麼都沒有
file-setting-editot-code style-file and code templates -python script
pycharm一些其他功能#!/usr/bin/env python //此行雖然在windows中不必要,但為便於移植linux中,建議加入
#-*- coding:utf-8 -*- //同一字符集
# @time : $ $
# @author : zhang xun
# @file : $.py
pycharm 的快捷鍵# !/usr/bin/env python
# -*- coding: utf-8 -*-
# @time : 2017/10/18 0:04
# @author : zhang xun
# @file : python
name=raw_input("please input your name :")
print ("hello! " + name)
一周二次課
dhclient 自動獲取ip位址 dhclient r 關閉自動獲取服務 ip add 查詢ip ifconfig 獲取網絡卡資訊,如網絡卡資訊顯示網絡卡未啟動可使用ifup啟動網絡卡 ifup 啟用網絡卡 命令 ifup 網絡卡名 例如 ifup ens33 ifdown 禁用網絡卡,ctrl ...
一周五次課(10月20日)
raw input 裡面面跟字串 input 裡面跟數字 type 型別 abs 取絕對值round a 預設保留一位小數,採用四捨五入的方法 round float,精度 布林型別只有兩個值,true和false,一般用在賦值的時候,作為最終判斷的返回值,然後拿這個值進行操作。bool false...
17周周一周二
一.io outputstream system.in system.out 檔案自身file fileinputsream fileinputsream fin new fileinputstream f a.txt read 每次讀乙個位元組 返回值 1檔案末尾 while ch fin.rea...