#!/usr/bin/python
# -*- coding: UTF-8 -*-
str = 'Runoob'
print(str)
print(str[0:-1])  # 输出第一个到倒数第二个的字符
print(str[0])
print(str[2:5])
print(str * 2)
print(str + '你好')

print('----------------')

print('hello\nrunoob')
print(r'hello\nrunoob')

# input("\n\n按下 enter 键后退出。")

import sys; x = 'runoob'; sys.stdout.write(x + '\n')


