python基礎篇-輸入和輸出

九頭龍鰲龜發表於2018-12-28

輸出

print (`hello, world`)

print(`The quick brown fox`, `jumps over`, `the lazy dog`)

print(300)

print(100+200)

print(`100 + 200 = `, 100 + 200)

輸入

name = input(`please enther your name:`)
print(`hello`, name)

# -*- coding: utf-8 -*-
print(`1024 * 768 =`, 1024 * 768)

相關文章