Commit acbd2b39 by BellCodeEditor

auto save

parent e3160ea5
import pandas as pd
df = pd.read_excel(r"C:\Users\Administrator\Desktop\11.xlsx",sheet_name='大伟')
nrows=df.shape[0]
ncols=df.columns.size
print('Max Rows:'+str(nrows))
print('Max Columns'+str(ncols))
\ No newline at end of file
import random
a="我要出去,找人"
b="六六大顺"
c=list(a)
print(c)
d=random.randint(0,len(a))
print(d)
c.insert(d,b)
print(c)
e="".join()
\ No newline at end of file
# import turtle
# turtle.begin_fill()
# turtle.fillcolor("red")
# turtle.circle(50)
# turtle.end_fill()
# turtle.begin_fill()
# turtle.pencolor("yellow")
# turtle.fillcolor("green")
# turtle.circle(50,360,5)
# turtle.end_fill()
# turtle.done()
# print("ab")
# print("a"+"b")
a=list(input())
i=0
while i<len(a):
if a[i]>='0' and a[i]<='9':
a.pop(i)
i=i-1
i=i+1
print(a)
\ No newline at end of file
'''
kdjfkladsjlkf
'''
\ No newline at end of file
with open(r'C:\Users\Administrator\Desktop\11.txt','r',encoding='utf-8') as aa:
bb=aa.readlines()
kk=[]
total=0
for i in bb:
cc=i.split()
sum=0
for k in cc[1:]:
sum=sum+int(k)
total=total+sum
dd=cc[0]+" "+str(sum)+'\n'
kk.append(dd)
with open(r'C:\Users\Administrator\Desktop\11.txt','a',encoding='utf-8') as ee:
ee.writelines(kk)
ee.writelines(["总计"," ",str(total)])
import turtle
a=input()
print(a)
print("百:",a[0],"十:",a[1],"个:",a[2])
\ No newline at end of file
while True:
a=int(input("输入停车时间:"))
if a<=2:
print("收费:"+"5"+"元")
else:
b=5+(a-2)*2
print("收费:"+str(b)+"元")
r=float(input("半径:"))
pi=3.14
s=pi*r**2
c=2*pi*r
print("圆的周长是"+str('%.2f'%s),"面积是"+str('%.2f'%c))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment