Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
9 lines (7 loc) · 319 Bytes

File metadata and controls

9 lines (7 loc) · 319 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
# -*- coding:utf-8 -*-
__author__ = 'gjw'
__time__ = '2018/1/10 0010 下午 5:10'
# 题目:写一个函数,求一个字符串的长度,在main函数中输入字符串,并输出其长度。
if __name__ == '__main__':
s = input('please input a string:\n')
print('the string has %d characters.' % len(s))
Morty Proxy This is a proxified and sanitized view of the page, visit original site.