python 程式設計從入門到實踐 第一章 起步
阿新 • • 發佈:2018-11-10
1 搭建程式設計環境
-- 安裝 Python3 yum -y install python3*
-- 安裝過程中遇到報錯 說明已經安裝了Python34 --> Finished Dependency Resolution Error: Package: python3-yamlordereddictloader-0.3.0-1.el7.noarch (epel) Requires: python3-PyYAML You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest You have mail in /var/spool/mail/root
-- 進入Python3 開始命令 直接Python3即可 python3
print("hello python interpreter!") print("hello world!") print("hello habby yang!")
2 在不同的作業系統中搭建Python程式設計環境 3 解決安裝問題 4 從終端執行Python程式 Python3 hello_word.py
-- 安裝 Python3 yum -y install python3*
-- 安裝過程中遇到報錯 說明已經安裝了Python34 --> Finished Dependency Resolution Error: Package: python3-yamlordereddictloader-0.3.0-1.el7.noarch (epel) Requires: python3-PyYAML You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest You have mail in /var/spool/mail/root
-- 進入Python3 開始命令 直接Python3即可 python3
print("hello python interpreter!") print("hello world!") print("hello habby yang!")
2 在不同的作業系統中搭建Python程式設計環境 3 解決安裝問題 4 從終端執行Python程式 Python3 hello_word.py