mirror of
https://github.com/WMK965/965-Python-Learning-Repo.git
synced 2025-04-27 07:53:21 +00:00
更新 Calculate.py
This commit is contained in:
parent
07d3255376
commit
a6689d7352
@ -7,7 +7,8 @@ eval()函数可对括号中的含变量表达式做运算
|
||||
" 1 2 3 4 5 "
|
||||
-7 -6 -5 -4 -3 -2 -1 :反向递减序号
|
||||
使用[]获取字符串中一个或多个字符
|
||||
str[0]获取第一个字 str[0:2]获取前两个字 str[0:-1]字符串去掉末位后输出 str[1:]去首位
|
||||
str[0]获取第一个字 str[0:2]获取前两个字 str[0:-1]字符串去掉末位后输出 str[1:]去首位
|
||||
str[m:n[:k]]m位至n位,k为步长
|
||||
['F', 'f', '℉'] : 列表类型数据
|
||||
'''
|
||||
numdata = eval(In[0:-1])
|
||||
|
Loading…
Reference in New Issue
Block a user